public void Test(int number, int expectedResult) { var sut = new MultiplesOf3and5(); var result = sut.Calculate(number); Assert.Equal(expectedResult, result); }
static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.WriteLine(); Console.WriteLine(MultiplesOf3and5.SumOfMultiplesOf3and5(1000)); Console.WriteLine(); EvenFibonacciNumbers.RunFib(89); Console.WriteLine(); Console.WriteLine(EvenFibonacciNumbers.SumOfEvenNumbers(4000000)); Console.WriteLine(); var primes = GeneratePrimes.GenerateAllPrimesForMaxValue(13195); foreach (var prime in primes) { Console.Write($"{prime} "); } Console.WriteLine(); Console.WriteLine(LargestPrimeFactor.FindLargesPrimeFactor(600851475143)); Console.WriteLine(); var largestPalindrome = new LargestPalindromeV2(2); var product = largestPalindrome.FindLargestPalendromeProduct(); Console.WriteLine(product); Console.WriteLine(); }