public void StringWithQuotesInListToStringTest() { var obj = new VObject(new List <VObject> { "hello\\\"" }); Assert.AreEqual(obj.ToString(), "[\"hello\\\\\\\"\"]"); }
public void ListToStringTest3() { var obj = new VObject(new List <VObject> { "hello", "abc", "world" }); Assert.AreEqual(obj.ToString(), "[\"hello\", \"abc\", \"world\"]"); }
public void ListToStringTest2() { var obj = new VObject(new List <VObject> { 1, "abc", 2 }); Assert.AreEqual(obj.ToString(), "[1, \"abc\", 2]"); }
public void NestedListToStringTest() { var obj = new VObject(new List <VObject> { new List <VObject> { 1 }, new List <VObject> { 2, 3 } }); Assert.AreEqual(obj.ToString(), "[[1], [2, 3]]"); }
public void StringToStringTest(string str, string expected) { var obj = new VObject(str); Assert.AreEqual(obj.ToString(), expected); }
public void NumberToStringTest(double num, string expected) { var obj = new VObject(num); Assert.AreEqual(obj.ToString(), expected); }