public void DateTest() { var item = new FormatTest(Integer: 1, Int32: 1, Int64: 1, Number: 1, _Float: 1.0f, _Double: 1.0d, _String: "", _Byte: new byte[0], Binary: null, Date: new DateTime(year: 2000, month: 5, day: 13), DateTime: null, Uuid: null, Password: ""); var serialized = JsonConvert.SerializeObject(item); Console.WriteLine(serialized); Assert.Greater(serialized.IndexOf("\"2000-05-13\""), 0); }
public void Init() { instance = new FormatTest(Number: 123, _Byte: new byte[] { 0x20 }, Date: new DateTime(2015, 1, 18), Password: "******"); }
public void Init() { instance = new FormatTest(); }
public void Init() { instance = new FormatTest(Number: 123, _Byte: new byte[] { 0x20 }, Date: new DateTime(2015, 1, 18), Password: "******"); }
public void Init() { instance = new FormatTest(); }