Skip to content

Commit

Permalink
Test EnumerateDirectories with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
vbreuss committed Oct 24, 2023
1 parent d84221f commit 42e0cb4
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ public abstract partial class EnumerateDirectoriesTests<TFileSystem>
: FileSystemTestBase<TFileSystem>
where TFileSystem : IFileSystem
{
[SkippableTheory]
[InlineData("Folder", @"Folder\SubFolder")]
[InlineData(@"Folder\", @"Folder\SubFolder")]
[InlineData(@"Folder\..\.\Folder", @"Folder\..\.\Folder\SubFolder")]
public void MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(
string queryPath, string expectedPath)
{
var fileSystem = new MockFileSystem();
fileSystem.Directory.CreateDirectory("Folder/SubFolder");

var actualResult = fileSystem.Directory.EnumerateDirectories(queryPath);

actualResult.Should().BeEquivalentTo(new[] { expectedPath });

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / MacOS Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.MockFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder", expectedPath: "Folder\\SubFolder")

Failed test found in: _Mac-1698127313017_2023-10-24_06_05_12.trx _Mac-1698127313017_2023-10-24_06_05_12.trx _Mac-1698127313017_2023-10-24_06_07_55.trx _Mac-1698127313017_2023-10-24_06_07_55.trx Error: Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6).

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in /Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs:line 24

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / MacOS Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.MockFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder", expectedPath: "Folder\\SubFolder")

Failed test found in: _Mac-1698127313017_2023-10-24_06_06_33.trx _Mac-1698127313017_2023-10-24_06_09_30.trx Error: Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6).

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Execution.AssertionScope.Dispose()
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in /Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs:line 24
   at InvokeStub_EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / MacOS Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.RealFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder", expectedPath: "Folder\\SubFolder")

Failed test found in: _Mac-1698127313017_2023-10-24_06_06_33.trx _Mac-1698127313017_2023-10-24_06_09_30.trx Error: Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6).

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in /Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs:line 24
   at InvokeStub_EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / Ubuntu Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.MockFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder", expectedPath: "Folder\\SubFolder")

Failed test found in: _fv-az406-368_2023-10-24_06_03_58[1].trx _fv-az406-368_2023-10-24_06_03_58[1].trx _fv-az406-368_2023-10-24_06_06_16.trx _fv-az406-368_2023-10-24_06_06_16.trx Error: Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6).

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in /home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs:line 24

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / Ubuntu Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.MockFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder", expectedPath: "Folder\\SubFolder")

Failed test found in: _fv-az406-368_2023-10-24_06_05_05.trx _fv-az406-368_2023-10-24_06_07_22.trx Error: Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6).

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Execution.AssertionScope.Dispose()
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in /home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs:line 24
   at InvokeStub_EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / Ubuntu Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.RealFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder", expectedPath: "Folder\\SubFolder")

Failed test found in: _fv-az406-368_2023-10-24_06_05_05.trx _fv-az406-368_2023-10-24_06_07_22.trx Error: Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult[0] to be "Folder\SubFolder", but "Folder/SubFolder" differs near "/Su" (index 6).

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in /home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs:line 24
   at InvokeStub_EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / Windows Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.MockFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder\\", expectedPath: "Folder\\SubFolder")

Failed test found in: runneradmin_fv-az277-45_2023-10-24_06_06_15[1].trx runneradmin_fv-az277-45_2023-10-24_06_06_15[1].trx runneradmin_fv-az277-45_2023-10-24_06_11_15.trx runneradmin_fv-az277-45_2023-10-24_06_11_15.trx Error: Expected actualResult to be a collection with 1 item(s), but found an empty collection. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult to be a collection with 1 item(s), but found an empty collection.

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Tests\FileSystem\Directory\EnumerateDirectoriesTests.cs:line 24

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / Windows Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.MockFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder\\", expectedPath: "Folder\\SubFolder")

Failed test found in: runneradmin_fv-az277-45_2023-10-24_06_08_41.trx runneradmin_fv-az277-45_2023-10-24_06_13_43.trx Error: Expected actualResult to be a collection with 1 item(s), but found an empty collection. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult to be a collection with 1 item(s), but found an empty collection.

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Execution.AssertionScope.Dispose()
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Tests\FileSystem\Directory\EnumerateDirectoriesTests.cs:line 24
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 24 in Tests/Testably.Abstractions.Tests/FileSystem/Directory/EnumerateDirectoriesTests.cs

View workflow job for this annotation

GitHub Actions / Windows Tests

Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests.RealFileSystemTests ► MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(queryPath: "Folder\\", expectedPath: "Folder\\SubFolder")

Failed test found in: runneradmin_fv-az277-45_2023-10-24_06_08_41.trx runneradmin_fv-az277-45_2023-10-24_06_13_43.trx Error: Expected actualResult to be a collection with 1 item(s), but found an empty collection. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
Raw output
Expected actualResult to be a collection with 1 item(s), but found an empty collection.

With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Include all non-private properties
- Include all non-private fields
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at FluentAssertions.Equivalency.EquivalencyValidator.AssertEquality(Comparands comparands, EquivalencyValidationContext context)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(IEnumerable`1 expectation, Func`2 config, String because, Object[] becauseArgs)
   at FluentAssertions.Collections.StringCollectionAssertions`2.BeEquivalentTo(String[] expectation)
   at Testably.Abstractions.Tests.FileSystem.Directory.EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(String queryPath, String expectedPath) in D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Tests\FileSystem\Directory\EnumerateDirectoriesTests.cs:line 24
   at InvokeStub_EnumerateDirectoriesTests`1.MockDirectory_EnumerateDirectories_ShouldReturnPathsPrefixedWithQueryPath(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
}

[SkippableFact]
public void EnumerateDirectories_AbsolutePath_ShouldNotIncludeTrailingSlash()
{
Expand Down

0 comments on commit 42e0cb4

Please sign in to comment.