public void Constructor_String_Test() { string str = "123"; var j = new WFJson(str); Assert.AreEqual(j.V <string>(), str); }
public void Constructor_Class_Test() { MyClass my = new MyClass() { Name = "Name", Age = 23 }; var j = new WFJson(my); var rtv = j.V <MyClass>(); Assert.IsInstanceOfType(rtv, typeof(MyClass)); Assert.AreEqual(rtv.Name, my.Name); Assert.AreEqual(rtv.Age, my.Age); }