mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:15:40 +00:00
fix(test): fix incorrect date being returned for .NET Standard 2.1
This commit is contained in:
parent
5714ef73c1
commit
1acee3bf72
@ -57,8 +57,9 @@ public class DateTimeOffsetTests
|
||||
public void FirstDayOfMonth_ShouldBe1st_GivenToday()
|
||||
{
|
||||
DateTimeOffset today = DateTime.UtcNow.Date;
|
||||
var first = new DateTimeOffset(today.Year, today.Month, 1, 0, 0, 0, today.Offset);
|
||||
|
||||
Assert.AreEqual(new DateTime(today.Year, today.Month, 1), today.FirstDayOfMonth());
|
||||
Assert.AreEqual(first, today.FirstDayOfMonth());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
Loading…
Reference in New Issue
Block a user