Ejemplo n.º 1
0
 public void OpenIncludeNullValuesScope_should_serialize_to_expected_output(bool includeNullValues, Mock before, string expectedJson)
 {
     using (JsConfig.OpenIncludeNullValuesScope(includeNullValues))
     {
         var json = JsonSerializer.SerializeToString(before);
         Assert.AreEqual(expectedJson, json);
     }
 }