Skip to content

Commit 6d858b4

Browse files
committed
Use \ instead of / for path delimiters.
1 parent c575f51 commit 6d858b4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Source/Lib/Fluxor.UnitTests/DisposableCallbackTests/DisposeTests.cs

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.IO;
32
using Xunit;
43

54
namespace Fluxor.UnitTests.DisposableCallbackTests;
@@ -23,19 +22,16 @@ public void WhenCalled_ThenCallsActionPassedInConstructor()
2322
[Fact]
2423
public void WhenCalledTwice_ThenThrowsObjectDisposedExceptionWithCallerInformation()
2524
{
26-
string ExpectedSubstring =
27-
@"Fluxor.UnitTests\DisposableCallbackTests\DisposeTests.cs"" on line "
28-
.Replace(Path.PathSeparator, '/');
25+
var subject = new DisposableCallback(
26+
$"{nameof(DisposeTests)}.{nameof(WhenCalledTwice_ThenThrowsObjectDisposedExceptionWithCallerInformation)}",
27+
() => { });
2928

30-
var subject = new DisposableCallback(
31-
$"{nameof(DisposeTests)}.{nameof(WhenCalledTwice_ThenThrowsObjectDisposedExceptionWithCallerInformation)}",
32-
() => { });
3329
subject.Dispose();
3430
var exception = Assert.Throws<ObjectDisposedException>(() => subject.Dispose());
3531

3632
Assert.Contains(
37-
ExpectedSubstring,
38-
exception.Message.Replace(Path.PathSeparator, '/')
33+
@"Fluxor.UnitTests\DisposableCallbackTests\DisposeTests.cs"" on line ",
34+
exception.Message.Replace('/', '\\')
3935
);
4036
}
4137
}

0 commit comments

Comments
 (0)