public void String() { Reader reader = new Reader(); object actual = Reader.Read(new StringReader("\"Hello\"")); Assert.AreEqual("Hello", actual); }
public void Double() { Reader reader = new Reader(); object actual = Reader.Read(new StringReader("1.1")); Assert.AreEqual(1.1, actual); }
public void Integer() { Reader reader = new Reader(); object actual = Reader.Read(new StringReader("1")); Assert.AreEqual(1, actual); }
public void Array() { Reader reader = new Reader(); object actual = Reader.Read(new StringReader("[1 2 3]")); Assert.IsInstanceOfType(typeof(object[]), actual); }