public void TheFirstPrimeIs2() { // Arrange var calculator = new PrimeCalculator(1); var log = new CalculationLog(); // Act calculator.Calculate(1, log); // Assert log.Items.Single().Result.Should().Be(2); }
public void TestFirstPrime() { Assert.AreEqual(2, PrimeCalculator.Calculate(1), "First prime was not 2."); }
public void TestHundredthPrime() { Assert.AreEqual(541, PrimeCalculator.Calculate(100), "Hundredth prime was not 541."); }
public void TestSeventhPrime() { Assert.AreEqual(17, PrimeCalculator.Calculate(7), "Seventh prime was not 17."); }
public void TestThirdPrime() { Assert.AreEqual(5, PrimeCalculator.Calculate(3), "Thrid prime was not 5."); }
public void TestSecondPrime() { Assert.AreEqual(3, PrimeCalculator.Calculate(2), "Second prime was not 3."); }