Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sdks
diff options
context:
space:
mode:
authorLarry Ewing <lewing@microsoft.com>2020-02-21 08:50:35 +0300
committerLarry Ewing <lewing@microsoft.com>2020-02-21 19:52:41 +0300
commita3e03430ea094131d0b381b38625c554fa2607d9 (patch)
treed62d2b961e0b80ec187372407ad9e8867e0a1a3c /sdks
parented017481e8d231b4acc2f8742aa32b9369e96108 (diff)
[wasm][tests] clean up a couple of the Contains assertions
Diffstat (limited to 'sdks')
-rw-r--r--sdks/wasm/DebuggerTestSuite/Tests.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdks/wasm/DebuggerTestSuite/Tests.cs b/sdks/wasm/DebuggerTestSuite/Tests.cs
index 6e4e18d6fa7..9f621caaac8 100644
--- a/sdks/wasm/DebuggerTestSuite/Tests.cs
+++ b/sdks/wasm/DebuggerTestSuite/Tests.cs
@@ -53,9 +53,9 @@ namespace DebuggerTests
await Ready();
//all sources are sent before runtime ready is sent, nothing to check
await insp.Ready ();
- Assert.True (scripts.ContainsValue ("dotnet://debugger-test.dll/debugger-test.cs"));
- Assert.True (scripts.ContainsValue ("dotnet://debugger-test.dll/debugger-test2.cs"));
- Assert.True (scripts.ContainsValue ("dotnet://Simple.Dependency.dll/dependency.cs"));
+ Assert.Contains ("dotnet://debugger-test.dll/debugger-test.cs", scripts.Values);
+ Assert.Contains ("dotnet://debugger-test.dll/debugger-test2.cs", scripts.Values);
+ Assert.Contains ("dotnet://Simple.Dependency.dll/dependency.cs", scripts.Values);
}
[Fact]
@@ -143,7 +143,7 @@ namespace DebuggerTests
var top_frame = pause_location ["callFrames"][0];
Assert.Equal ("IntAdd", top_frame ["functionName"].Value<string>());
- Assert.True (top_frame ["url"].Value<string> ().Contains("debugger-test.cs"));
+ Assert.Contains ("debugger-test.cs", top_frame ["url"].Value<string> ());
CheckLocation ("dotnet://debugger-test.dll/debugger-test.cs", 3, 41, scripts, top_frame["functionLocation"]);
CheckLocation ("dotnet://debugger-test.dll/debugger-test.cs", 5, 2, scripts, top_frame["location"]);