public void TestReadStaticProperty() { const string hexBuffer = "A162496401"; ObjectWithStaticProperty obj = Helper.Read <ObjectWithStaticProperty>(hexBuffer); Assert.NotNull(obj); }
public void TestWriteStaticProperty() { ObjectWithStaticProperty obj = new ObjectWithStaticProperty(); const string hexBuffer = "A162496401"; Helper.TestWrite(obj, hexBuffer); }
public void TestReadStaticProperty() { JsonSerializerOptions options = new JsonSerializerOptions(); options.SetupExtensions(); const string json = @"{""Id"":1}"; ObjectWithStaticProperty obj = Helper.Read <ObjectWithStaticProperty>(json, options); Assert.NotNull(obj); }
public void TestWriteStaticProperty() { JsonSerializerOptions options = new JsonSerializerOptions(); options.SetupExtensions(); ObjectWithStaticProperty obj = new ObjectWithStaticProperty(); const string json = @"{""Id"":1}"; Helper.TestWrite(obj, json, options); }