Пример #1
0
 public void Setup() => value = DataGenerator.Generate <T>();
Пример #2
0
 public void SerializeSystemTextJsons_() => serialized = System.Text.Json.JsonSerializer.Serialize(DataGenerator.Generate <T>());
Пример #3
0
 public void SerializeJsonNet() => serialized = Newtonsoft.Json.JsonConvert.SerializeObject(DataGenerator.Generate <T>());
Пример #4
0
 public void SerializeUtf8Json_() => serialized = Utf8Json.JsonSerializer.ToJsonString(DataGenerator.Generate <T>());
Пример #5
0
 public void SetupJil() => serialized = Jil.JSON.Serialize <T>(DataGenerator.Generate <T>(), Jil.Options.ISO8601);