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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ILCompiler.DependencyAnalysisFramework/tests/DependencyAnalysisFrameworkTests.cs')
-rw-r--r--src/ILCompiler.DependencyAnalysisFramework/tests/DependencyAnalysisFrameworkTests.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ILCompiler.DependencyAnalysisFramework/tests/DependencyAnalysisFrameworkTests.cs b/src/ILCompiler.DependencyAnalysisFramework/tests/DependencyAnalysisFrameworkTests.cs
index 390299940..3b9cfc80e 100644
--- a/src/ILCompiler.DependencyAnalysisFramework/tests/DependencyAnalysisFrameworkTests.cs
+++ b/src/ILCompiler.DependencyAnalysisFramework/tests/DependencyAnalysisFrameworkTests.cs
@@ -50,8 +50,8 @@ namespace ILCompiler.DependencyAnalysisFramework.Tests
testGraph.AddRoot("A", "A is root");
List<string> results = testGraph.AnalysisResults;
- Assert.True(results.Contains("A"));
- Assert.True(results.Contains("B"));
+ Assert.Contains("A", results);
+ Assert.Contains("B", results);
});
}
@@ -64,9 +64,9 @@ namespace ILCompiler.DependencyAnalysisFramework.Tests
testGraph.AddRoot("A", "A is root");
List<string> results = testGraph.AnalysisResults;
- Assert.True(results.Contains("A"));
- Assert.False(results.Contains("B"));
- Assert.False(results.Contains("C"));
+ Assert.Contains("A", results);
+ Assert.DoesNotContain("B", results);
+ Assert.DoesNotContain("C", results);
Assert.True(results.Count == 1);
});
}
@@ -81,9 +81,9 @@ namespace ILCompiler.DependencyAnalysisFramework.Tests
testGraph.AddRoot("C", "C is root");
List<string> results = testGraph.AnalysisResults;
- Assert.True(results.Contains("A"));
- Assert.True(results.Contains("B"));
- Assert.True(results.Contains("C"));
+ Assert.Contains("A", results);
+ Assert.Contains("B", results);
+ Assert.Contains("C", results);
Assert.True(results.Count == 3);
});
}