Skip to content

refactor: change name from HasFile to HasFileMatching #17

refactor: change name from HasFile to HasFileMatching

refactor: change name from HasFile to HasFileMatching #17

GitHub Actions / MacOS Tests succeeded Aug 9, 2023 in 0s

MacOS Tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
_Mac-1691609458837_2023-08-09_19_34_55.trx 20✅ 4s
_Mac-1691609458837_2023-08-09_19_34_59.trx 20✅ 3s

✅ _Mac-1691609458837_2023-08-09_19_34_55.trx

20 tests were completed in 4s with 20 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests 4✅ 350ms
Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests 4✅ 255ms
Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests 12✅ 375ms

✅ Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests

✅ HasFileMatching_InvalidFileName_ShouldThrow(invalidFileName: "", because: "because738e531a-ade0-4294-b0d9-3534be65d891")
✅ HasFileMatching_InvalidFileName_ShouldThrow(invalidFileName: null, because: "because050730cb-0056-4a02-ac29-bc454a3a0574")
✅ HasFileMatching_WithMatchingFile_ShouldNotThrow(directoryName: "directoryNamedd317367-7aa7-481c-9aa3-1975a5d181d6", fileName: "fileName03d82e96-ba49-4042-bcbf-3208dd02c469")
✅ HasFileMatching_WithoutMatchingFile_ShouldThrow(directoryName: "directoryName0a58caed-419f-4d9b-90c5-94c3fa75b57a", fileName: "fileName595c0828-56bd-47ee-9c64-6778f9c6bd09", because: "because6f5d9ed0-1985-4514-ac5a-038a12cef715")

✅ Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests

✅ IsNotReadOnly_WithReadOnlyFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "content921a60a1-72d8-49e8-8481-45e6599a61ac", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name4d59e7c6-3af7-430d-b414-3a4378f36b71" }, because: "becausea17b586b-c4cb-43aa-b6a1-0c6c4341b087")
✅ IsNotReadOnly_WithWritableFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content00566094-b931-497d-9690-c085e7f8c793", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name782eb96c-5e55-4306-9d65-160db86f1467" })
✅ IsReadOnly_WithReadOnlyFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "contentdde4d3d8-40a5-458d-a435-23bbdb945f5d", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name6c6b629c-5802-4116-91dd-42fbe6350b6f" })
✅ IsReadOnly_WithWritableFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "content45571aff-1bf8-4efa-a1d5-1bb950bb9dd0", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "namef5c38b53-da17-45dd-85e4-a26cae0a83d8" }, because: "because63456583-7418-4344-bc97-2535f624f8d5")

✅ Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests

✅ HaveDirectory_And_WithMultipleDirectories_ShouldNotThrow(path1: "path18bb2a8dd-46d4-46e9-bbde-3f6c1728cfc4", path2: "path29c63ed82-d55a-43ac-92ef-e19a52c25104")
✅ HaveDirectory_And_WithOnlyOneDirectory_ShouldThrow(path1: "path17629b2b5-e7fc-40c8-86a7-32b0ef674843", path2: "path2628482c1-9b85-4e52-94e6-21141bdfcc87")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: "", because: "because0bbbdc5c-5c8c-4b29-95c5-403e5f320f80")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: null, because: "becausedf9bcd66-3026-495a-aaef-e68aa989502d")
✅ HaveDirectory_WithDirectory_ShouldNotThrow(path: "path2e953b12-929f-4eb6-9be8-9a987dd8279a")
✅ HaveDirectory_WithoutDirectory_ShouldThrow(path: "path0e81e3bd-ed37-4f61-8cfb-346be3fe3a2b", because: "becausee391c8ae-7f0b-4e39-bdcf-daf2e313535a")
✅ HaveFile_And_WithMultipleFiles_ShouldNotThrow(path1: "path1ba8af4f6-f8f1-4205-aa7d-4b8571b01ea9", path2: "path25c737330-2307-486c-910f-1fd3c38b60d4")
✅ HaveFile_And_WithOnlyOneFile_ShouldThrow(path1: "path15e58ee9e-c944-41b4-b1b0-16fa85766219", path2: "path2513f4a1b-5d56-4818-a04d-bfa93a2699cb")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: "", because: "because2a2bb3c9-b254-4c7b-bdb4-cdb7578e6c29")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: null, because: "becausefe2e50a3-f27f-451a-96ea-9f244d06f072")
✅ HaveFile_WithFile_ShouldNotThrow(path: "patheb7ab53f-ad9a-4a05-af89-3f05142b368e")
✅ HaveFile_WithoutFile_ShouldThrow(path: "pathc852f3b3-1e00-4e03-a850-43887102e9ea", because: "because984a2665-32e0-4795-828c-93bbcfd725d6")

✅ _Mac-1691609458837_2023-08-09_19_34_59.trx

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

Test suite Passed Failed Skipped Time
Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests 4✅ 189ms
Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests 4✅ 178ms
Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests 12✅ 200ms

✅ Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests

✅ HasFileMatching_InvalidFileName_ShouldThrow(invalidFileName: "", because: "because44001823-ada2-4568-a3e7-38244814e15a")
✅ HasFileMatching_InvalidFileName_ShouldThrow(invalidFileName: null, because: "because43d95650-e6b4-4660-8c74-c384f18fad89")
✅ HasFileMatching_WithMatchingFile_ShouldNotThrow(directoryName: "directoryName9bb22c4e-7afc-4648-854c-9af54a8fc68b", fileName: "fileName10326ac8-ca14-497b-8990-589a128e5e8f")
✅ HasFileMatching_WithoutMatchingFile_ShouldThrow(directoryName: "directoryName953158b6-f17f-4390-b55b-56c56b0590fc", fileName: "fileNamee9ee697f-cd62-4a51-95ff-83b9ffb0af8d", because: "because693c9b3a-4bce-4639-b75d-56ec93b2b273")

✅ Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests

✅ IsNotReadOnly_WithReadOnlyFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "contentdb461181-24ee-4531-9d32-960b277ecc58", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name11d6c039-ccde-4e6c-81a3-bb846bd16209" }, because: "becaused46f51a7-35d5-465d-ae3a-e8e415b7ecfc")
✅ IsNotReadOnly_WithWritableFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content9ef86d89-943d-47a7-a489-4edfdc7b3a1b", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name5a106d04-ff7e-46f2-a104-a68f338606f9" })
✅ IsReadOnly_WithReadOnlyFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content7bc1d95f-2af8-44b6-8a92-2eaf9c77d037", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "namefd68fbb6-bf7d-454a-be2f-3c02780dd24d" })
✅ IsReadOnly_WithWritableFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "content3bad75ae-e02e-4b65-b96d-90577de2c2b7", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "nameaf8627fb-972f-429c-ab7f-d575333d7893" }, because: "because7ada413e-49e0-4392-91f8-deb45bfc7dce")

✅ Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests

✅ HaveDirectory_And_WithMultipleDirectories_ShouldNotThrow(path1: "path19c40569c-60d7-418e-a82c-c87947f4a10e", path2: "path24504d7c2-712c-4866-8abd-c57dc70f6853")
✅ HaveDirectory_And_WithOnlyOneDirectory_ShouldThrow(path1: "path14874c4d3-eb8e-434e-aec3-8c487ad8203b", path2: "path225599faa-5558-448f-a3ca-133235f650f0")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: "", because: "because27903c18-b19b-48ba-a46d-6ef944ea1dad")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: null, because: "because1bb1b763-f59d-4cb8-a866-4e4783672027")
✅ HaveDirectory_WithDirectory_ShouldNotThrow(path: "path696bc3f0-d88f-4675-b61b-2a6e40845888")
✅ HaveDirectory_WithoutDirectory_ShouldThrow(path: "path224acdd2-c966-40d4-a73c-cb18f136b693", because: "becausee99bb858-2104-4f8d-b142-fbf96a001571")
✅ HaveFile_And_WithMultipleFiles_ShouldNotThrow(path1: "path145ca21c0-5d2d-4555-b3b9-3e2ae2ee3c94", path2: "path2f05ac0f3-018a-4c49-b90a-42b2e3cf7103")
✅ HaveFile_And_WithOnlyOneFile_ShouldThrow(path1: "path19356c9a1-8630-4f69-a9c1-80ea72b39cd6", path2: "path2520167fb-be94-44c4-9b48-2cd7379fb3ce")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: "", because: "because41a5c937-0dd2-4dac-aab2-29f340ec1c30")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: null, because: "because91590881-0534-40c9-9a0f-0a532b9f4161")
✅ HaveFile_WithFile_ShouldNotThrow(path: "path54155cb1-7fc8-460e-95b3-59b1efba7235")
✅ HaveFile_WithoutFile_ShouldThrow(path: "pathc67878d3-df9e-46ab-a3d6-fefecf3efae3", because: "because7de71809-c1e1-4f24-933c-78dac5585a84")