Commit Graph
34 Commits
Author SHA1 Message Date
Kenneth Skovhede 1428d8cc6f Preserve order of input sources 2025-02-24 12:53:48 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth Skovhede f3e2a0a902 Avoid setting Thread.CurrentCulture
Avoids setting deprecated `Thread.CurrentCulture` and `Thread.CurrentUICulture`, using `CultureInfo.CurrentCulture` instead.
Fixed a few legacy places where incorrect string compares were used.
2024-09-18 09:24:55 +02:00
Kenneth Skovhede d8c8ce7988 Removed the use of DeviceId due to lack of sufficient key material.
Kept the infrastructure to allow re-introducing it later if a better source for a device key is found.
Added support for not having any valid settings encryption key.
Added warnings if the user is running without a settings encryption key.
Added additional checks during startup to help with troubleshooting and configuring a setup with a settings encryption key.
Docker builds will now warn if no encryption key is set.
This fixes #5518
2024-08-31 11:02:14 +02:00
Marcelo Ceccon 89ca5fb1b5 Adding library level functionality to encrypt settings
This commit only adds the functionality to the library to encrypt settings fields in the sqlite database.

Unit Tests are included in this commit.
2024-08-19 13:50:09 -03:00
Kenneth Skovhede 473c6cbbb8 Merge commit '4f577c65a4d8806f79637c50c21ca3a683c5a07a' into feature/kestrel-avalonia-upgrade 2024-03-04 12:21:53 +01:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Thomas Suckow 3172ec3a4b More logging in tests 2022-05-06 21:46:17 -07:00
Riccardo Paolo Bestetti 528478fda4 Implement exponential backoff for backend errors 2022-01-20 23:22:08 +01:00
Tyler Gill 70583f5d93 Add a bit more test coverage. 2021-03-20 12:29:57 -06:00
Tyler Gill 719adbf1f1 Clean up a few more bugs and inconsistencies in ReadLimitLengthStream. 2021-03-19 13:59:09 -06:00
Tyler Gill 7f1b6bc7a2 Fix some bugs in ReadLimitLengthStream changes, and add a unit test for some of the new behavior.
Also make NonSeekableStream block seeks via the Position setter.
2021-03-18 12:24:11 -06:00
Kenneth Hsu 149f5fe908 Add test for computing seconds since epoch. 2019-09-01 12:47:23 -07:00
Kenneth Hsu ef6b245ae9 Add test for normalizing DateTimes. 2019-09-01 12:38:23 -07:00
BlueBlock caba4be76f shared file access corrected 2019-08-30 11:03:57 -04:00
BlueBlock 7ce4639a9e unittest added for ReadLimitLengthStream() 2019-08-29 17:23:19 -04:00
Kenneth Hsu c798693470 Consolidate duplicate branches. 2019-07-07 18:47:06 -07:00
Kenneth Hsu 2776687bc4 Add test for ThrottledStream.Read method.
This concerns issue #3787, which was fixed in pull request #3802.
2019-07-07 17:16:58 -07:00
Kenneth Hsu c721d16151 Add test for ThrottledStream.Write. 2019-07-07 17:16:58 -07:00
Kenneth Hsu 8dd3aeaf26 Use invariant culture in calls to ToLower and ToUpper. 2018-12-11 21:21:07 -08:00
verhoek b2cc18426c Renamed Library.IO to Library.Common.IO.
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek bc053df294 Moved basic IO helper functions to Library.IO. 2018-10-27 12:17:07 +02:00
Kenneth Hsu 0f3ff687da Add missing test category.
The category is needed for the test to run in Travis.
2018-10-23 21:04:00 -07:00
Kenneth Hsu 2d397745d0 Add unit test for utility that appends path separator. 2018-09-22 10:19:45 -07:00
Kenneth Hsu d67c5c393b Fix whitespace issues. 2018-08-30 21:52:02 -07:00
Kenneth Hsu c54d2bb18a Add culture-aware string comparison tests.
This concerns issue #3342.
2018-08-30 21:51:53 -07:00
Kenneth Hsu 214e4c0428 Add test for reading stream into buffer. 2018-06-04 20:35:22 -07:00
Kenneth Skovhede e65d38e235 Updated the unittest to not use the deprecated NUnit attributes 2018-02-01 09:48:55 +01:00
Kenneth Hsu faad6de7ba Add tests for parsing string into bool. 2017-12-17 14:52:29 -08:00
Kenneth Hsu 9edec2b53e Add comments to clarify tests. 2017-09-29 21:10:21 -07:00
Kenneth Hsu ff7d57a9f4 Add test for obtaining unique items from empty collection. 2017-09-29 21:09:29 -07:00
Kenneth Hsu cb4972f900 Add test for obtaining unique items with custom comparer. 2017-09-28 21:30:29 -07:00
Kenneth Hsu 705bbe198f Modify test to use string data.
This will allow us to more easily test the case where a custom equality
comparer is provided.
2017-09-28 21:30:29 -07:00
Kenneth Hsu c658458e01 Add unit test for method to get unique items. 2017-09-28 21:30:29 -07:00