public void TestFizzBuzzNegative([Values(1, 3, 5, 7, 11, 13, 17, 19, 23, 27, 77, 97)] int inputVal) { FizzBuzzConverter converter = new FizzBuzzConverter(); string output = converter.GetConvertedValue(inputVal); Assert.AreNotEqual("FizzBuzz", output); }
public void TestFizzBuzzPositive([Values(15, 30, 45, 75)] int inputVal) { FizzBuzzConverter converter = new FizzBuzzConverter(); string output = converter.GetConvertedValue(inputVal); Assert.AreEqual("FizzBuzz", output); }
public void TestBuzzPositive([Values(5, 10, 20, 50, 95, 85)] int inputVal) { FizzBuzzConverter converter = new FizzBuzzConverter(); string output = converter.GetConvertedValue(inputVal); Assert.AreEqual("Buzz", output); }
public void TestFizzPositive([Values(3, 6, 9, 12, 99, 48, 54)] int inputVal) { FizzBuzzConverter converter = new FizzBuzzConverter(); string output = converter.GetConvertedValue(inputVal); Assert.AreEqual("Fizz", output); }
public void TestIntegerPositive([Values(1, 2, 4, 7, 8)] int inputVal) { FizzBuzzConverter converter = new FizzBuzzConverter(); string output = converter.GetConvertedValue(inputVal); Assert.AreEqual(inputVal.ToString(), output); }
static void Main(string[] args) { FizzBuzzConverter convert = new FizzBuzzConverter(); Console.WriteLine("Hello World!"); FizzBuzzDataRepo drepo = new FizzBuzzDataRepo(); List <int> testData = drepo.GetFizzBuzzTestData(); foreach (int counter in testData) { Console.WriteLine($"Value of Counter : {convert.GetConvertedValue(counter)}"); } Console.ReadKey(); }