diff options
author | apolcyn <apolcyn@google.com> | 2016-08-13 19:25:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-13 19:25:42 +0000 |
commit | cb21e8be4e756e06f2f388c134edc44a36ba4ed5 (patch) | |
tree | 5e10a1794d73f92fc7216785a6fd6e7896cde1ec | |
parent | f45dd74b0151ce934b896eb1676302f80ab38032 (diff) | |
parent | b4280fa084ab57878fae069f59f1d834cceb1546 (diff) |
Merge pull request #7598 from apolcyn/fix_sanity_test_diff_ga
compare test config as objects instead of strings
-rw-r--r-- | src/csharp/Grpc.Core.Tests/SanityTest.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/csharp/Grpc.Core.Tests/SanityTest.cs b/src/csharp/Grpc.Core.Tests/SanityTest.cs index 19c7a0b440..df887d82b3 100644 --- a/src/csharp/Grpc.Core.Tests/SanityTest.cs +++ b/src/csharp/Grpc.Core.Tests/SanityTest.cs @@ -58,10 +58,11 @@ namespace Grpc.Core.Tests [Test] public void TestsJsonUpToDate() { - var discoveredTests = DiscoverAllTestClasses(); - string discoveredTestsJson = JsonConvert.SerializeObject(discoveredTests, Formatting.Indented); + Dictionary<string, List<string>> discoveredTests = DiscoverAllTestClasses(); + Dictionary<string, List<string>> testsFromFile + = JsonConvert.DeserializeObject<Dictionary<string, List<string>>>(ReadTestsJson()); - Assert.AreEqual(discoveredTestsJson, ReadTestsJson()); + Assert.AreEqual(discoveredTests, testsFromFile); } /// <summary> |