Skip to content

Commit

Permalink
Corrected inconsistent indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lpreiner committed Jan 7, 2021
1 parent 0e4a907 commit c1cb139
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions CSharpDate.Test/DateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ public void CanConstruct()
Assert.Equal(635007168000000000, d.Ticks);
}

[Fact]
public void CanConstructFromDateTime()
{
Date d1 = new Date(new DateTime(2001, 2, 3, 4, 5, 6, 7).AddTicks(8));
Date d2 = new Date(2001, 2, 3);
Assert.Equal(d1, d2);
Assert.True(d1.Equals(d2));
}

[Fact]
public void ToDateRemovesAllTimePortion()
{
Date d1 = new DateTime(2001, 2, 3, 4, 5, 6, 7).AddTicks(8).ToDate();
Date d2 = new Date(2001, 2, 3);
Assert.Equal(d1, d2);
Assert.True(d1.Equals(d2));
}
[Fact]
public void CanConstructFromDateTime()
{
Date d1 = new Date(new DateTime(2001, 2, 3, 4, 5, 6, 7).AddTicks(8));
Date d2 = new Date(2001, 2, 3);
Assert.Equal(d1, d2);
Assert.True(d1.Equals(d2));
}

[Fact]
public void ToDateRemovesAllTimePortion()
{
Date d1 = new DateTime(2001, 2, 3, 4, 5, 6, 7).AddTicks(8).ToDate();
Date d2 = new Date(2001, 2, 3);
Assert.Equal(d1, d2);
Assert.True(d1.Equals(d2));
}

[Fact]
public void CanGetDateFromDateTime()
Expand Down

0 comments on commit c1cb139

Please sign in to comment.