Skip to content

Merge branch 'main' into topic/vb/match-coverage

Sign in for the full log view
GitHub Actions / .NET Framework Tests succeeded Aug 10, 2023 in 1s

.NET Framework Tests ✅

Tests passed successfully

✅ runneradmin_fv-az618-92_2023-08-10_05_35_28.trx

73 tests were completed in 3s with 73 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testably.Abstractions.FluentAssertions.Tests.DirectoryAssertionsTests 4✅ 152ms
Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests 4✅ 6ms
Testably.Abstractions.FluentAssertions.Tests.FileAssertionsTests 11✅ 30ms
Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests 11✅ 18ms
Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests 24✅ 102ms
Testably.Abstractions.FluentAssertions.Tests.FileSystemInfoAssertionsTests 6✅ 186ms
Testably.Abstractions.FluentAssertions.Tests.MatchTests 13✅ 14ms

✅ Testably.Abstractions.FluentAssertions.Tests.DirectoryAssertionsTests

✅ HasFileMatching_InvalidFileName_ShouldThrow(invalidFileName: "", because: "because3b8ebdcd-bf6d-41bc-aa18-9eab995d4f3a")
✅ HasFileMatching_InvalidFileName_ShouldThrow(invalidFileName: null, because: "because45cb0653-922c-46ac-b5fb-e68c67c4a53a")
✅ HasFileMatching_WithMatchingFile_ShouldNotThrow(directoryName: "directoryNamed60c552a-4424-47ca-be15-e935ddecd3fd", fileName: "fileNamef89371ef-4dd3-4110-acd4-966c1f22e45b")
✅ HasFileMatching_WithoutMatchingFile_ShouldThrow(directoryName: "directoryName81880479-d539-49ba-9ba5-656908623eca", fileName: "fileName63108b2e-51b7-4e2d-86d6-6da3d4b262ff", because: "because19a0ad9b-f5df-4be1-81b9-5cc14094f487")

✅ Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests

✅ HaveFileMatching_InvalidFileName_ShouldThrow(invalidFileName: "", because: "because45413d9d-6752-4178-92bf-3cb308a36ba7")
✅ HaveFileMatching_InvalidFileName_ShouldThrow(invalidFileName: null, because: "becausede1d0bcd-5ae1-4577-866e-80ef49d6735a")
✅ HaveFileMatching_WithMatchingFile_ShouldNotThrow(directoryName: "directoryNamea38f9655-400f-4e60-a068-5de1bbafe61c", fileName: "fileName97f29e9a-2d5c-4c64-9e74-17ad73ef29c0")
✅ HaveFileMatching_WithoutMatchingFile_ShouldThrow(directoryName: "directoryNamebf89f702-2894-46ec-bf13-1d3d3027d8c4", fileName: "fileName499feff5-9da9-48bb-ba12-9add2dddb39b", because: "becausea614d3f0-e8bd-4835-ad08-b28b16bb0339")

✅ Testably.Abstractions.FluentAssertions.Tests.FileAssertionsTests

✅ HasContentMatching_FullContent_ShouldNotThrow(content: "contentc465a7e2-20ab-45b3-9b1a-a3feff0774e8", fileName: "fileName581a8f8f-6af1-4814-8652-87d3f6f3d3e0")
✅ HasContentMatching_FullContent_WithEncoding_ShouldNotThrow(encoding: UTF8Encoding { BodyName = "utf-8", CodePage = 65001, DecoderFallback = DecoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncoderFallback = EncoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncodingName = "Unicode (UTF-8)", ··· }, content: "content628f9f5e-9e95-4c5e-abd1-2bf6eda19ab1", fileName: "fileNameed717c37-bb72-42c3-ac9a-b679f6faf861")
✅ HasContentMatching_OnlyPartOfContentWithoutWildcards_ShouldThrow(content: "content93828d0e-9a85-4af4-aade-fdd5b5cba266", fileName: "fileNamead1fd56e-6fb3-4c92-a33c-c78c909126f5", because: "because9dfb75f9-b181-486a-bc11-9ddcb6a241b4")
✅ HasContentMatching_OnlyPartOfContentWithoutWildcards_WithEncoding_ShouldThrow(encoding: UTF8Encoding { BodyName = "utf-8", CodePage = 65001, DecoderFallback = DecoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncoderFallback = EncoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncodingName = "Unicode (UTF-8)", ··· }, content: "content045b88e1-f2e9-4fd0-bb30-88a280a0ea98", fileName: "fileName3530bd6b-3a3e-4704-8636-fe1b22ab2f86", because: "becauseecc203b0-292d-43e0-ae4e-54799fe3d1f7")
✅ HasContentMatching_OnlyPartOfContentWithWildcard_ShouldNotThrow(content: "content8221aec9-d7a5-4edd-9bc7-247345fa107e", fileName: "fileNamed5aee4c9-88cb-45fd-8cad-e76b6cb8d316")
✅ HasContentMatching_OnlyPartOfContentWithWildcard_WithEncoding_ShouldNotThrow(encoding: UTF8Encoding { BodyName = "utf-8", CodePage = 65001, DecoderFallback = DecoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncoderFallback = EncoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncodingName = "Unicode (UTF-8)", ··· }, content: "content3b4739d8-6edd-4767-9de3-a4b914a6b0a6", fileName: "fileNamee0cae799-4703-44d1-b90f-29183518d0cf")
✅ HasContentMatching_WithEncodingMismatch_ShouldThrow(fileName: "fileNamed61e039a-56ca-47a7-aea8-63217ac9c26d", because: "because2918788b-da67-4adc-889f-a4d655ca01c0")
✅ IsNotReadOnly_WithReadOnlyFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "content7b274d0d-1be8-4feb-ab93-119521d03fad", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "namee4635d32-f3f8-45ce-b1c6-940655f285e3" }, because: "because7c319730-e9dd-4c3e-8b24-50f2b47320bd")
✅ IsNotReadOnly_WithWritableFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content01b9b3d0-49d7-4c54-a5e6-102c131c6a25", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "named08cde10-14a6-44e4-8e8d-517b7b9d791e" })
✅ IsReadOnly_WithReadOnlyFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content4face89b-a0f9-4314-b0f8-d26687b9fc3a", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "nameddef9761-ebf9-49fd-b165-31bba7b4e5f9" })
✅ IsReadOnly_WithWritableFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "content363215c6-1c36-411d-a65a-2bd6ba481eb6", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "namef99e4c07-568e-4d9c-8a1f-73f157cdcffa" }, because: "becausee0c4ea68-a9b2-4837-9486-39499e74f256")

✅ Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests

✅ BeReadOnly_WithReadOnlyFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content02ce5ff9-badb-4fb5-8fbd-48e2d5a84ff7", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name6649253e-43a4-457a-9789-633146176417" })
✅ BeReadOnly_WithWritableFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "contentc3362cf9-71f6-4657-9370-897424f7dfa5", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "nameafcd141c-e1a3-4aa6-a6da-693e70411b80" }, because: "because4765f9b7-b348-48d3-94f7-b63c39a6fc4f")
✅ HaveContentMatching_FullContent_ShouldNotThrow(content: "contentaae320e2-d327-4b57-b5ca-1a647363b7e5", fileName: "fileNamedeae19b9-7d97-4e37-b6a4-e206b81230fd")
✅ HaveContentMatching_FullContent_WithEncoding_ShouldNotThrow(encoding: UTF8Encoding { BodyName = "utf-8", CodePage = 65001, DecoderFallback = DecoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncoderFallback = EncoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncodingName = "Unicode (UTF-8)", ··· }, content: "contenta1227299-b898-4615-9572-bae40492ae30", fileName: "fileName62448efc-21d8-48fe-9cd2-0db97a621a25")
✅ HaveContentMatching_OnlyPartOfContentWithoutWildcards_ShouldThrow(content: "contentcede699a-b31f-47ea-81f2-498f3df9c787", fileName: "fileNameb0fe8c28-8680-4ad1-a106-326f502280bf", because: "because79df345b-bf14-4f62-ba68-d8c94e7c7dd7")
✅ HaveContentMatching_OnlyPartOfContentWithoutWildcards_WithEncoding_ShouldThrow(encoding: UTF8Encoding { BodyName = "utf-8", CodePage = 65001, DecoderFallback = DecoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncoderFallback = EncoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncodingName = "Unicode (UTF-8)", ··· }, content: "contentc5b78e56-edfc-4ef3-8cb1-c3f3cbe2fa04", fileName: "fileNamefc522901-533a-4ec0-9133-6d92b827cab0", because: "becaused496155a-0a7a-4d76-9fcf-75eb802faae4")
✅ HaveContentMatching_OnlyPartOfContentWithWildcard_ShouldNotThrow(content: "contente284c94d-f896-4013-9c0d-f904c4aaa8af", fileName: "fileName9b278062-a4b0-44cc-b056-a835952963f8")
✅ HaveContentMatching_OnlyPartOfContentWithWildcard_WithEncoding_ShouldNotThrow(encoding: UTF8Encoding { BodyName = "utf-8", CodePage = 65001, DecoderFallback = DecoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncoderFallback = EncoderReplacementFallback { DefaultString = "�", MaxCharCount = 1 }, EncodingName = "Unicode (UTF-8)", ··· }, content: "contentb224a93c-d86c-4e5c-8cc3-13317a351cf1", fileName: "fileName75887aa9-c9ca-467a-9985-cea476ff25f6")
✅ HaveContentMatching_WithEncodingMismatch_ShouldThrow(fileName: "fileNameee9d39fb-276a-429b-a5b8-b5413a2d50a2", because: "becauseb0e72a36-479d-496e-8702-713c55d7b1dd")
✅ NotBeReadOnly_WithReadOnlyFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "contentdc6f6641-0904-496e-b5c5-ae2a21c07f5d", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name48d1bb93-3d55-4aa5-97dd-0924264d6f58" }, because: "because793b49cd-e6bc-437f-a648-df6a572b1889")
✅ NotBeReadOnly_WithWritableFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "contentd1dd513f-7cff-401e-a795-5225e8487d1a", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name5cc5a805-d202-42f2-b56c-137f8a6ef33b" })

✅ Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests

✅ HaveDirectory_And_WithMultipleDirectories_ShouldNotThrow(path1: "path1f2fcdf50-c8ce-47de-9d6b-0371a79db979", path2: "path2b57a5e78-05ec-4852-954a-54034439614f")
✅ HaveDirectory_And_WithOnlyOneDirectory_ShouldThrow(path1: "path198337c01-c48e-4db8-9a45-618b3325adbd", path2: "path2007e70c8-c2bf-4a65-93e4-15218e30e644")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: "", because: "becausef44becae-29f5-4174-bb4a-85b637eac3f1")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: null, because: "because511f9dc4-9e97-48f2-b4a9-21823f87727f")
✅ HaveDirectory_WithDirectory_ShouldNotThrow(path: "path5ba6ca81-0d21-4d0a-8ee3-029dab1ba7cb")
✅ HaveDirectory_WithoutDirectory_ShouldThrow(path: "pathe19781f9-f9aa-4607-8f2f-c8dd3013bc9a", because: "becausea3baba36-3f4d-46ee-80ec-c7ef1bf29fef")
✅ HaveFile_And_WithMultipleFiles_ShouldNotThrow(path1: "path170581c53-bd80-481f-9a46-70e71bd9f856", path2: "path29324e89f-4506-41cb-a378-fe1ddab65fd9")
✅ HaveFile_And_WithOnlyOneFile_ShouldThrow(path1: "path15e2d44dd-0384-41d9-91f9-3bd31e81c979", path2: "path28a510978-bb64-4a2e-8320-2133aef6a9ab")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: "", because: "because0fc4032d-f50d-4fc6-b435-38ba6da108e3")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: null, because: "because54c19e36-5fa6-4957-baca-c1640695c3ff")
✅ HaveFile_WithFile_ShouldNotThrow(path: "path67478bc0-18e1-4b23-bcde-ae1c04117613")
✅ HaveFile_WithoutFile_ShouldThrow(path: "pathfb43eed3-1441-4c00-8b12-0e5e7e0b3f7d", because: "because82af6080-664e-4d3f-b409-a32b1bbc57d7")
✅ NotHaveDirectory_And_WithOnlyOneDirectory_ShouldThrow(path1: "path199d6a15c-0b74-4dcd-aff7-134096b45383", path2: "path2176324f3-1d2b-4cde-b7e9-0ff8c4fd59c9")
✅ NotHaveDirectory_And_WithoutAnyDirectories_ShouldNotThrow(path1: "path1a57ec99f-ee34-46f9-aa0b-a373255ac0b2", path2: "path2a974f4fe-f1d8-4399-bf0d-eaea818d2c40")
✅ NotHaveDirectory_InvalidPath_ShouldThrow(invalidPath: "", because: "becausee2b0ab6d-caf2-4be6-bbee-862d3e9f6f11")
✅ NotHaveDirectory_InvalidPath_ShouldThrow(invalidPath: null, because: "because7be7a37e-9c13-4242-8aa5-85354bc55b06")
✅ NotHaveDirectory_WithDirectory_ShouldThrow(path: "path9cf4f656-0249-4922-8c56-4484a0dab334", because: "because9c6b6eb7-80d2-4a1d-8777-0fffa7f91d3e")
✅ NotHaveDirectory_WithoutDirectory_ShouldNotThrow(path: "path18aad5f4-963b-45eb-8123-6090cdfbcd86")
✅ NotHaveFile_And_WithOnlyOneFile_ShouldThrow(path1: "path1bd3d474f-c129-4baa-9481-49b857b05c7d", path2: "path25ef6c26a-e041-4510-8824-9d266b8ffa8b")
✅ NotHaveFile_And_WithoutAnyFiles_ShouldNotThrow(path1: "path1cfd40a85-1a4b-4fda-8d10-5b569e5ed8fe", path2: "path291c303d2-55d3-4741-8d09-f3ee46cf4c0d")
✅ NotHaveFile_InvalidPath_ShouldThrow(invalidPath: "", because: "becauseb950734f-9edb-4b8c-89dc-a992c0ea3dde")
✅ NotHaveFile_InvalidPath_ShouldThrow(invalidPath: null, because: "because0369539e-02b6-4fde-a576-d2d173063bdc")
✅ NotHaveFile_WithFile_ShouldThrow(path: "path5bcc291a-3853-4c36-b14b-87cc3f8f188d", because: "becaused0700341-a71f-454f-ad30-13d81ddc76c8")
✅ NotHaveFile_WithoutFile_ShouldNotThrow(path: "pathaebddfb4-15b6-4743-b096-d9f6b635c1f1")

✅ Testably.Abstractions.FluentAssertions.Tests.FileSystemInfoAssertionsTests

✅ Exist_ForDirectoryInfo_WithCorrectDirectory_ShouldNotThrow(directoryName: "directoryNamecc290ee0-1442-41f1-8168-c10637e4b182")
✅ Exist_ForDirectoryInfo_WithoutCorrectDirectory_ShouldThrow(directoryName: "directoryNamee4bfdd5e-8fbc-4168-a9b4-8f1a609fcf21", because: "because42bab28f-efac-4b7a-8a15-cda11f04d137")
✅ Exist_ForDirectoryInfo_WithSameFile_ShouldThrow(fileName: "fileNamec10cfcda-432d-4d64-965f-69a2853192dd", because: "because5f793522-3f21-43ed-b685-52a4fc809a81")
✅ Exist_ForFileInfo_WithCorrectFile_ShouldNotThrow(fileName: "fileName1a23bfa3-40ff-44ee-9556-e1206f7f6acd")
✅ Exist_ForFileInfo_WithoutCorrectFile_ShouldThrow(fileName: "fileNamed75d5420-9186-4fb7-81ad-faa28aa304b5", because: "because0a669dbd-c3f5-4e16-82e7-61bf5f22b6da")
✅ Exist_ForFileInfo_WithSameDirectory_ShouldThrow(fileName: "fileName4eaa5414-9081-4d9a-a2d6-1d12db1cedc3", because: "because94b346c8-a2d1-4c35-8b1f-c531d2575251")

✅ Testably.Abstractions.FluentAssertions.Tests.MatchTests

✅ ImplicitCast_FromNull_ShouldUseEmptyString(pattern: "")
✅ ImplicitCast_FromNull_ShouldUseEmptyString(pattern: null)
✅ Wildcard_MatchesNull_ShouldReturnFalse
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "*", testInput: "Foo.Bar", expectedResult: True)
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "Foo?Bar", testInput: "Foo.Bar", expectedResult: True)
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "Foo?r", testInput: "Foo.Bar", expectedResult: False)
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "Foo", testInput: "Foo", expectedResult: True)
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "Foo", testInput: "xFoo.Bar", expectedResult: False)
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "Foo", testInput: "xFoo", expectedResult: False)
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "Foo*", testInput: "Foo.Bar", expectedResult: True)
✅ Wildcard_ShouldReturnValidRegexMatchingExpectedResult(wildcard: "Foo*r", testInput: "Foo.Bar", expectedResult: True)
✅ Wildcard_WithIgnoreCase_ShouldConsiderFlag(ignoreCase: False)
✅ Wildcard_WithIgnoreCase_ShouldConsiderFlag(ignoreCase: True)