Skip to content

Commit e7c5a91

Browse files
committed
Fix unit tests
1 parent 154663c commit e7c5a91

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Toxy.Test/DateTimeParserTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public class DateTimeParserTest
1010
[Test]
1111
public void TestParseDatetimeWithTimezone()
1212
{
13-
ClassicAssert.AreEqual(new DateTime(2008, 10, 25, 3, 9, 6), DateTimeParser.Parse("24-oct-08 21:09:06 CEST"));
14-
ClassicAssert.AreEqual(new DateTime(2012, 4, 20, 16, 10, 0), DateTimeParser.Parse("2012-04-20 10:10:00+0200"));
15-
ClassicAssert.AreEqual(new DateTime(2014, 12, 12, 12, 13, 30), DateTimeParser.Parse("Fri, 12 Dec 2014 12:13:30 +0800 (CST)"));
13+
ClassicAssert.AreEqual(new DateTime(2008, 10, 25, 3, 9, 6, DateTimeKind.Utc), DateTimeParser.Parse("24-oct-08 21:09:06 CEST"));
14+
ClassicAssert.AreEqual(new DateTime(2012, 4, 20, 16, 10, 0, DateTimeKind.Utc), DateTimeParser.Parse("2012-04-20 10:10:00+0200"));
15+
ClassicAssert.AreEqual(new DateTime(2014, 12, 12, 12, 13, 30, DateTimeKind.Utc), DateTimeParser.Parse("Fri, 12 Dec 2014 12:13:30 +0800 (CST)"));
1616

1717
}
1818

Toxy.Test/TestDataSample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ public static string GetOOXMLPath(string filename)
5353
}
5454
public static string GetPowerpointPath(string filename)
5555
{
56-
return GetFilePath(filename, "powerpoint");
56+
return GetFilePath(filename, "Powerpoint");
5757
}
5858
public static string GetCNMPath(string filename)
5959
{
6060
return GetFilePath(filename, "cnm");
6161
}
6262
public static string GetEmailPath(string filename)
6363
{
64-
return GetFilePath(filename, "email");
64+
return GetFilePath(filename, "Email");
6565
}
6666
public static string GetFilePath(string filename, string subFolder)
6767
{

0 commit comments

Comments
 (0)