public void SerializeJavaScriptDate1970() { using (writerNoIndent.WriteArray()) { writerNoIndent.WriteValue(new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc), JSonWriterDateFormat.JavaScript); } Assert.AreEqual("[\"\\/Date(0)\\/\"]", writerNoIndent.ToString()); }
public void WriteAnArrayUsingSimplifiedSyntax() { using (writer.WriteArray()) { } Assert.AreEqual("[]", writer.ToString(), "Empty array expected!"); }