Skip to content

Commit 6355466

Browse files
committed
fix slash
1 parent 5d1681e commit 6355466

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Verify.DerivePaths.Tests/CustomDir/CustomTypeName.ThrowOnConflict.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
Type: Exception,
3-
Message: The prefix has already been used. This is mostly caused by a conflicting combination of `VerifierSettings.DerivePathInfo()`, `UseMethodName.UseDirectory()`, `UseMethodName.UseTypeName()`, and `UseMethodName.UseMethodName()`. Prefix: {ProjectDirectory}CustomDir\CustomTypeName.Conflict,
3+
Message: The prefix has already been used. This is mostly caused by a conflicting combination of `VerifierSettings.DerivePathInfo()`, `UseMethodName.UseDirectory()`, `UseMethodName.UseTypeName()`, and `UseMethodName.UseMethodName()`. Prefix: {ProjectDirectory}CustomDir/CustomTypeName.Conflict,
44
StackTrace:
55
at FileNameBuilder.GetPrefix(Namer namer, String directory, String testPrefix, Assembly assembly)
66
at VerifyTests.InnerVerifier..ctor(String sourceFile, Type type, VerifySettings settings, MethodInfo method, IReadOnlyList`1 parameters)

src/Verify.DerivePaths.Tests/Tests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ static SettingsTask Run()
4040
catch
4141
{
4242
}
43+
4344
await Verifier.ThrowsAsync(() => Run())
44-
.UseMethodName("ThrowOnConflict");
45+
.UseMethodName("ThrowOnConflict")
46+
.AddScrubber(builder => builder.Replace(@"\", "/"));
4547
}
4648

4749
[Fact]

0 commit comments

Comments
 (0)