We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b71a2e0 commit aa0924cCopy full SHA for aa0924c
tests/NHapi.Base.NUnit/Util/SynchronizedCacheTests.cs
@@ -89,15 +89,12 @@ public void Add_WhenItemExistsInCache_ThrowsArgumentException()
89
var sut = new SynchronizedCache<string, string> { { "key", "value" } };
90
91
// Act / Assert
92
-#if WINDOWS
93
var expectedExceptionMessage = "An item with the same key has already been added.";
94
-#else
95
- var expectedExceptionMessage = "An item with the same key has already been added. Key: key";
96
-#endif
+
97
Assert.That(
98
() => sut.Add("key", "value"),
99
Throws.ArgumentException
100
- .With.Message.EqualTo(expectedExceptionMessage));
+ .With.Message.StartsWith(expectedExceptionMessage));
101
}
102
103
[Test]
0 commit comments