public void TestStringConvertToObj2() { const string str = null; var res = ItokHelper.ConvertToObj <ToDo>(str); Assert.AreEqual(null, res); }
public void TestStringConvertToObj3() { var todo = new ToDo("This is Name", "This is Description"); var str = JsonConvert.SerializeObject(todo); var res = ItokHelper.ConvertToObj <ToDo>(str); Assert.AreEqual(res, todo); }