tracks/csharp/exercises/prime-factors/PrimeFactorsTest.cs in trackler-2.0.8.14 vs tracks/csharp/exercises/prime-factors/PrimeFactorsTest.cs in trackler-2.0.8.15
- old
+ new
@@ -1,81 +1,70 @@
-using NUnit.Framework;
+using Xunit;
-[TestFixture]
public class PrimeFactorsTest
{
- [Test]
+ [Fact]
public void Test_1()
{
- Assert.That(PrimeFactors.For(1), Is.EqualTo(new int[0]));
+ Assert.Equal(new int[0], PrimeFactors.For(1));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_2()
{
- Assert.That(PrimeFactors.For(2), Is.EqualTo(new[] { 2 }));
+ Assert.Equal(new[] { 2 }, PrimeFactors.For(2));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_3()
{
- Assert.That(PrimeFactors.For(3), Is.EqualTo(new[] { 3 }));
+ Assert.Equal(new[] { 3 }, PrimeFactors.For(3));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_4()
{
- Assert.That(PrimeFactors.For(4), Is.EqualTo(new[] { 2, 2 }));
+ Assert.Equal(new[] { 2, 2 }, PrimeFactors.For(4));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_6()
{
- Assert.That(PrimeFactors.For(6), Is.EqualTo(new[] { 2, 3 }));
+ Assert.Equal(new[] { 2, 3 }, PrimeFactors.For(6));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_8()
{
- Assert.That(PrimeFactors.For(8), Is.EqualTo(new[] { 2, 2, 2 }));
+ Assert.Equal(new[] { 2, 2, 2 }, PrimeFactors.For(8));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_9()
{
- Assert.That(PrimeFactors.For(9), Is.EqualTo(new[] { 3, 3 }));
+ Assert.Equal(new[] { 3, 3 }, PrimeFactors.For(9));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_27()
{
- Assert.That(PrimeFactors.For(27), Is.EqualTo(new[] { 3, 3, 3 }));
+ Assert.Equal(new[] { 3, 3, 3 }, PrimeFactors.For(27));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_625()
{
- Assert.That(PrimeFactors.For(625), Is.EqualTo(new[] { 5, 5, 5, 5 }));
+ Assert.Equal(new[] { 5, 5, 5, 5 }, PrimeFactors.For(625));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_901255()
{
- Assert.That(PrimeFactors.For(901255), Is.EqualTo(new[] { 5, 17, 23, 461 }));
+ Assert.Equal(new[] { 5, 17, 23, 461 }, PrimeFactors.For(901255));
}
- [Ignore("Remove to run test")]
- [Test]
+ [Fact(Skip = "Remove to run test")]
public void Test_93819012551()
{
- Assert.That(PrimeFactors.For(93819012551), Is.EqualTo(new[] { 11, 9539, 894119 }));
+ Assert.Equal(new[] { 11, 9539, 894119 }, PrimeFactors.For(93819012551));
}
}
\ No newline at end of file