public void DateToXmlSchema_ForExpectedDate_ReturnsCorrectString() { Assert.Equal("2014-01-01T00:00:00-05:00", DateToXmlSchemaFilter.date_to_xmlschema(new DateTime(2014, 01, 01))); }
public void DateToXmlSchema_ForExpectedDate_ReturnsCorrectString() { // "2014-01-01T01:00:00+01:00" var date = new DateTime(2014, 1, 1, 0, 0, 0, DateTimeKind.Utc); Assert.Equal(XmlConvert.ToString(date, XmlDateTimeSerializationMode.Local), DateToXmlSchemaFilter.date_to_xmlschema(date)); }