public void TestMinXml() { var minXml = _data1.ToXml(true); Assert.IsInstanceOfType(minXml, typeof(string)); Assert.IsNotNull(minXml); Debug.WriteLine(minXml); var cloneOverMinXml = SerEx.FromXml <Data>(minXml); Assert.IsNotNull(cloneOverMinXml); runEqTest(_data1, cloneOverMinXml, typeof(Data)); }
public void TestFullXml() { var fullXml = _data1.ToFullXml(); Assert.IsInstanceOfType(fullXml, typeof(string)); Assert.IsNotNull(fullXml); Debug.WriteLine(fullXml); var cloneOverFullXml = SerEx.FromXml <Data>(fullXml); Assert.IsNotNull(cloneOverFullXml); runEqTest(_data1, cloneOverFullXml, typeof(Data)); }
public void TestJsonQt2() { var json = _data1.ToJsonAltQuote(); Assert.IsInstanceOfType(json, typeof(string)); Assert.IsNotNull(json); Debug.WriteLine(json); var cloneOverJson = SerEx.FromJson <Data>(json); Assert.IsNotNull(cloneOverJson); runEqTest(_data1, cloneOverJson, typeof(Data)); }
public void TestJsonDictionary() { var ddJson = _dd.ToJson(); Assert.IsInstanceOfType(ddJson, typeof(string)); Assert.IsNotNull(ddJson); Debug.WriteLine($"ddJson={ddJson}"); var ddJsonClone = SerEx.FromJson <DataWithD>(ddJson); Assert.IsNotNull(ddJsonClone); runEqTest(_dd, ddJsonClone, typeof(DataWithD)); }
public void TestQn() { var qn = _data1.ToQn(); Assert.IsInstanceOfType(qn, typeof(string)); Assert.IsNotNull(qn); Debug.WriteLine(qn); var cloneOverQn = SerEx.FromQn <Data>(qn); Assert.IsNotNull(cloneOverQn); runEqTest(_data1, cloneOverQn, typeof(Data)); }