tracks/csharp/exercises/gigasecond/GigasecondTest.cs in trackler-2.0.8.14 vs tracks/csharp/exercises/gigasecond/GigasecondTest.cs in trackler-2.0.8.15
- old
+ new
@@ -1,29 +1,26 @@
using System;
-using NUnit.Framework;
+using Xunit;
-[TestFixture]
public class GigasecondTest
{
- [Test]
+ [Fact]
public void First_date()
{
var date = Gigasecond.Date(new DateTime(2011, 4, 25, 0, 0, 0, DateTimeKind.Utc));
- Assert.That(date, Is.EqualTo(new DateTime(2043, 1, 1, 1, 46, 40, DateTimeKind.Utc)));
+ Assert.Equal(new DateTime(2043, 1, 1, 1, 46, 40, DateTimeKind.Utc), date);
}
- [Test]
- [Ignore("Remove to run test")]
+ [Fact(Skip = "Remove to run test")]
public void Another_date()
{
var date = Gigasecond.Date(new DateTime(1977, 6, 13, 0, 0, 0, DateTimeKind.Utc));
- Assert.That(date, Is.EqualTo(new DateTime(2009, 2, 19, 1, 46, 40, DateTimeKind.Utc)));
+ Assert.Equal(new DateTime(2009, 2, 19, 1, 46, 40, DateTimeKind.Utc), date);
}
- [Test]
- [Ignore("Remove to run test")]
+ [Fact(Skip = "Remove to run test")]
public void Yet_another_date()
{
var date = Gigasecond.Date(new DateTime(1959, 7, 19, 0, 0, 0, DateTimeKind.Utc));
- Assert.That(date, Is.EqualTo(new DateTime(1991, 3, 27, 1, 46, 40, DateTimeKind.Utc)));
+ Assert.Equal(new DateTime(1991, 3, 27, 1, 46, 40, DateTimeKind.Utc), date);
}
}
\ No newline at end of file