Merge pull request #7598 from apolcyn/fix_sanity_test_diff_ga

compare test config as objects instead of strings
pull/7728/head
apolcyn 8 years ago committed by GitHub
commit cb21e8be4e
  1. 7
      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>

Loading…
Cancel
Save