Commit Graph

32 Commits

Author SHA1 Message Date
08178d3fd2 [UnitTest] When checking file timestamps if they differ 1 hour from the stored one consider them as equal, as some tests environments seem to have a 1 hour difference between local and UTC. 2022-12-11 12:26:28 +00:00
e0aaeaa60e [UnitTest] BuildDirectory method must be internal for commented code. 2022-12-09 13:30:51 +00:00
f9ace7b7d9 [UnitTests] Add code to generate extended attributes list and MD5s when building contents JSON for ReadOnlyFilesystemTest. 2022-12-08 14:16:35 +00:00
dfa9a62183 Stop at 256 levels of directory depth in filesystem unit tests contents builder to prevent a stack overflow. 2022-12-07 20:44:14 +00:00
417a1a83d7 Do not use recursion and stop at 256 levels of directory depth in filesystem unit tests to prevent a stack overflow. 2022-12-07 20:43:25 +00:00
46077ed55f Use System.Text.Json instead of NewtonSoft.Json 2022-12-07 20:39:49 +00:00
d2962850e9 Move all localizable strings from Aaru.Tests project to resources. 2022-11-29 10:33:40 +00:00
2f9b7fe0a1 General code cleanup and style refactor. 2022-11-15 15:58:48 +00:00
bd3fe7bd4e General code style and feature fixes. 2022-11-15 01:35:15 +00:00
040b4eab4e More pattern matching. 2022-11-14 01:49:18 +00:00
b05dc45d09 Add null reference checks. 2022-03-17 00:46:26 +00:00
d4b1e63e96 Fix naming style. 2022-03-15 01:37:37 +00:00
762e3eb6d2 General cleanup and refactor. 2022-03-07 07:36:44 +00:00
0bc819feab Move to file scoped namespaces. 2022-03-06 13:29:38 +00:00
5e733abc8f Add support for byte addressable images to detection. 2021-11-14 03:52:44 +00:00
f51d414abd Refactor IMediaImage.ReadSector(s) to return error status instead of buffer. 2021-09-19 21:16:47 +01:00
ef2fc1788a Refactor IMediaImage.Open to return error status instead of boolean. 2021-09-16 19:10:39 +01:00
12a72a45e4 Consolidate error number enumerations. 2021-09-16 04:42:14 +01:00
631eee916f Fix filesystem tests when readdir returns a null list. 2021-09-12 19:27:43 +01:00
fdff1d74c9 Use Array.Empty<T>. 2021-08-17 18:23:50 +01:00
da157fe16f When building filesystem contents test file also include symlinks. 2021-07-09 09:49:59 +01:00
966077c595 Test filesystems and contents in optical media image unit tests. 2021-07-07 04:14:10 +01:00
2d660f4443 Fix path when building read only filesystem test. 2021-06-02 14:41:27 +01:00
50e3910e6f Set an encoding in read only filesystem test. 2021-06-02 14:41:06 +01:00
cf450db0ef Remove statfs test as it is test elsewhere. 2021-06-01 12:49:40 +01:00
f175318310 Load read only filesystem test json directly from file. 2021-06-01 04:14:43 +01:00
2c9b45329e Use Newtonsoft JSON for read only filesystem test as System.Text.Json is not respecting MaxDepth settings. 2021-06-01 03:58:26 +01:00
4a94fce0d3 Implement ReadOnlyFilesystemTest in CP/M tests. 2021-06-01 02:35:35 +01:00
b968889fcf Add code to generate JSON for read only filesystem test. 2021-05-31 20:37:52 +01:00
e09e61d0cf Allow contents for read only filesystem test to be in JSON, in-code or external with the test image. 2021-05-31 19:15:07 +01:00
4428ca0727 Test mounting and stat of read only filesystem even if contents are not defined. 2021-05-31 18:22:58 +01:00
acf4138cbf Create abstract class to test read only filesystem implementations. 2021-05-31 18:21:39 +01:00