tracks/fsharp/exercises/gigasecond/GigasecondTest.fs in trackler-2.2.1.22 vs tracks/fsharp/exercises/gigasecond/GigasecondTest.fs in trackler-2.2.1.23
- old
+ new
@@ -1,22 +1,21 @@
-module GigasecondTest
+module GigasecondTest
-open NUnit.Framework
+open Xunit
+open FsUnit.Xunit
open Gigasecond
open System
-[<Test>]
+[<Fact>]
let ``First date`` () =
let input = DateTime(2011, 4, 25)
- Assert.That(gigasecond input, Is.EqualTo(DateTime(2043, 1, 1)))
+ gigasecond input |> should equal (DateTime(2043, 1, 1))
-[<Test>]
-[<Ignore("Remove to run test")>]
+[<Fact(Skip = "Remove to run test")>]
let ``Another date`` () =
let input = DateTime(1977, 6, 13)
- Assert.That(gigasecond input, Is.EqualTo(DateTime(2009, 2, 19)))
+ gigasecond input |> should equal (DateTime(2009, 2, 19))
-[<Test>]
-[<Ignore("Remove to run test")>]
+[<Fact(Skip = "Remove to run test")>]
let ``Yet another date`` () =
let input = DateTime(1959, 7, 19)
- Assert.That(gigasecond input, Is.EqualTo(DateTime(1991, 3, 27)))
+ gigasecond input |> should equal (DateTime(1991, 3, 27))
\ No newline at end of file