Skip to content

refactor: change name from HasFile to HasFileMatching #15

refactor: change name from HasFile to HasFileMatching

refactor: change name from HasFile to HasFileMatching #15

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

MacOS Tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
_Mac-1691609051803_2023-08-09_19_26_37.trx 20✅ 4s
_Mac-1691609051803_2023-08-09_19_26_42.trx 20✅ 4s

✅ _Mac-1691609051803_2023-08-09_19_26_37.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✅ 404ms
Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests 4✅ 291ms
Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests 12✅ 505ms

✅ Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests

✅ HasFile_InvalidFileName_ShouldThrow(invalidFileName: "", because: "because0e8bb0e9-5c42-4a43-94e4-5b612e671c36")
✅ HasFile_InvalidFileName_ShouldThrow(invalidFileName: null, because: "becausebdd1acb3-b278-4a1b-b9aa-ad3e183bb9b2")
✅ HasFile_WithFile_ShouldNotThrow(directoryName: "directoryNamed10ec162-16c2-494b-b268-0a6a91a4d9c5", fileName: "fileNameca44335b-3fc8-45c9-9fb3-3629690c41ac")
✅ HasFile_WithoutFile_ShouldThrow(directoryName: "directoryNameb6fddc55-e0e5-4203-98b5-7c2d54016382", fileName: "fileName55be100d-f14d-46df-87d1-f49f48f4930f", because: "because2418ff3e-0dfa-47be-afd1-b758316cb4af")

✅ Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests

✅ IsNotReadOnly_WithReadOnlyFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "content0b1f4f96-3090-4142-9b65-61d3bd5115e3", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "namefd1e3724-e7b9-4964-a724-315efa7b6208" }, because: "becauseae725ce4-7f1f-416d-a326-40516f126cb1")
✅ IsNotReadOnly_WithWritableFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "contentc43a23da-d76a-4eeb-935d-534644a4bc26", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name028f7e8d-cbdb-4c3e-a72c-d13de7aac254" })
✅ IsReadOnly_WithReadOnlyFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content40fe5ff3-89f8-4523-95b2-eafaa12fd0f0", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "namecf4c7dca-3290-451c-892a-fb1c2358d24c" })
✅ IsReadOnly_WithWritableFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "content72b8091f-bc8d-4667-9f14-a43b7c0d2f50", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name9163301e-c7dd-4523-b24d-554e0a34eb0b" }, because: "because792876a5-b320-4a2a-9911-5b71bef52e23")

✅ Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests

✅ HaveDirectory_And_WithMultipleDirectories_ShouldNotThrow(path1: "path186325795-6073-4108-8e1d-88ae7d7f4a48", path2: "path242479383-c175-4993-8a9e-ca9c364ef51e")
✅ HaveDirectory_And_WithOnlyOneDirectory_ShouldThrow(path1: "path110e0b983-2812-4d6e-8fca-c0cff7ba8a82", path2: "path2893cb562-d378-4ab9-8003-18705e5d8601")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: "", because: "because134a1bbf-8b91-4145-aeba-4ce75bbf652d")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: null, because: "because2ecd154c-7614-49d6-b2e2-451155925afe")
✅ HaveDirectory_WithDirectory_ShouldNotThrow(path: "pathe1cf5361-a921-4b91-8e62-85f8198d16d5")
✅ HaveDirectory_WithoutDirectory_ShouldThrow(path: "path1194756a-4a7b-48d4-9369-89042963dfa1", because: "becauseae52e30f-5dde-42c7-96b0-f5617fa958aa")
✅ HaveFile_And_WithMultipleFiles_ShouldNotThrow(path1: "path11d81b94a-a2bd-449b-b1af-3204482bdb14", path2: "path24a3d9e57-9c56-4f38-8285-e2f4e308a649")
✅ HaveFile_And_WithOnlyOneFile_ShouldThrow(path1: "path175c9d11d-45b8-4628-91df-33f95c562b1a", path2: "path2e0b517b1-ab5a-4674-8d60-b7884bda4bcc")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: "", because: "becausec1eb29cc-cc4f-4ada-be75-6b5c83c678ee")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: null, because: "becausecd8940e3-e560-49c5-8199-0011599e5a98")
✅ HaveFile_WithFile_ShouldNotThrow(path: "path5077131c-68c0-4363-bb7e-fba7e8128128")
✅ HaveFile_WithoutFile_ShouldThrow(path: "path3d74c15f-911c-4a07-b772-f0279839077f", because: "because7bb06322-b1a1-487f-977e-982aa9c1d641")

✅ _Mac-1691609051803_2023-08-09_19_26_42.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✅ 169ms
Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests 4✅ 144ms
Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests 12✅ 163ms

✅ Testably.Abstractions.FluentAssertions.Tests.DirectoryInfoAssertionsTests

✅ HasFile_InvalidFileName_ShouldThrow(invalidFileName: "", because: "because14bbaae5-0cd9-40d5-8613-bbdf11e2d817")
✅ HasFile_InvalidFileName_ShouldThrow(invalidFileName: null, because: "because22a4ec77-df8d-483c-84ed-effa977e9a78")
✅ HasFile_WithFile_ShouldNotThrow(directoryName: "directoryName0c59a09e-5472-4693-8ec7-92d09b9a0398", fileName: "fileNameaeddb27c-5aff-44fe-b486-961e5f0673c1")
✅ HasFile_WithoutFile_ShouldThrow(directoryName: "directoryName12bf6c4c-b005-42a5-a19d-8605fd9a9a44", fileName: "fileName4a1192b7-2dab-464d-ae7e-0ecebb7796a8", because: "because80adb3bd-f81a-42fe-95d2-23979410cc4b")

✅ Testably.Abstractions.FluentAssertions.Tests.FileInfoAssertionsTests

✅ IsNotReadOnly_WithReadOnlyFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "contentf64796f0-6a46-46ee-af3c-4967bab84413", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "namef2d9caae-808b-45b4-ab74-856215091926" }, because: "becausee2c0de80-e668-4f3c-b2d4-c6c0d49bf8db")
✅ IsNotReadOnly_WithWritableFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content3fddeff8-f382-4493-83e6-8571707c78d0", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name083ed5d4-2207-4c98-9c5e-9d3b8649d2ba" })
✅ IsReadOnly_WithReadOnlyFile_ShouldNotThrow(fileDescription: FileDescription { Bytes = null, Content = "content7a22444e-9aa5-4d13-ab49-4ab4b5d3b069", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name357130fc-92e0-4e17-a5fb-19f7cfe6e9fb" })
✅ IsReadOnly_WithWritableFile_ShouldThrow(fileDescription: FileDescription { Bytes = null, Content = "contente81662d8-517a-46f5-9f6a-0b206e542a90", IsReadOnly = True, Item = (throws TargetParameterCountException), Name = "name0f67ef94-46bb-4aef-854c-ad7e6a3382ab" }, because: "becausebe9d89b2-b5c5-4053-ae2e-22f642360d30")

✅ Testably.Abstractions.FluentAssertions.Tests.FileSystemAssertionsTests

✅ HaveDirectory_And_WithMultipleDirectories_ShouldNotThrow(path1: "path17c934e94-a8af-4d6f-a865-e16edc7931d4", path2: "path2810b32e3-b92d-4d14-9bf3-614e9aba9d62")
✅ HaveDirectory_And_WithOnlyOneDirectory_ShouldThrow(path1: "path1484f559d-ab2f-4bf7-90ed-e2cabcc3d8fa", path2: "path259b8f141-3beb-4243-bd3a-19d966926b8f")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: "", because: "becausee693fa03-fdbd-4167-b018-d2214a1a0091")
✅ HaveDirectory_InvalidPath_ShouldThrow(invalidPath: null, because: "because18bd78c2-0dbe-4d73-866f-b6093374e67b")
✅ HaveDirectory_WithDirectory_ShouldNotThrow(path: "path783f49a2-1c79-45e4-ab4f-f106739eb2b0")
✅ HaveDirectory_WithoutDirectory_ShouldThrow(path: "path66eebcd3-5cb8-40ab-9a24-a4d715210dd9", because: "because8cefb1d0-4c84-4672-805b-cdbb2f974c43")
✅ HaveFile_And_WithMultipleFiles_ShouldNotThrow(path1: "path192df8486-e052-4e29-8c4c-c78f8efad500", path2: "path230d5a5f8-9dd7-40c7-88a9-11e8d92b873c")
✅ HaveFile_And_WithOnlyOneFile_ShouldThrow(path1: "path1a312a5e4-537d-41d2-855a-a6111e35b494", path2: "path2c96cd72e-396a-4033-ab4a-5173c1116b4d")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: "", because: "because1b28a260-da02-4587-9745-22db0e3a95cd")
✅ HaveFile_InvalidPath_ShouldThrow(invalidPath: null, because: "because640d3469-bf90-443c-be43-4af1fce853fb")
✅ HaveFile_WithFile_ShouldNotThrow(path: "path0f2caafc-9b0e-468d-aa29-4b2890a7ed05")
✅ HaveFile_WithoutFile_ShouldThrow(path: "path4d2705ef-c8cf-40e4-a3dd-b004da51f8bb", because: "becausedfeae772-1849-440c-90e5-a0c7870ec887")