// Checks to see if we can go from a JsonReader to a NewtonsoftWriter and get back the original document and visa versa private void RoundTripTestCuratedJson(string filename) { string path = string.Format("TestJsons/{0}", filename); string json = File.ReadAllText(path); #if true json = JsonTestUtils.RandomSampleJson(json); #endif this.MultiSerializationRoundTrip(json); }
private void VerifyNavigatorWithCurratedDoc(string filename, bool performExtraChecks = true) { string path = string.Format("TestJsons/{0}", filename); string json = File.ReadAllText(path); #if true json = JsonTestUtils.RandomSampleJson(json); #endif this.VerifyNavigator(json, performExtraChecks); }