public void Test_If_Various_Inputs_Returns_True( [Values(30, 45, 60, 120)] int input) { CocacolaCal ccc = new CocacolaCal(); bool expectedOutput = true; bool actualOutput = ccc.CheckIfDivisibleBy3And5Version2(input); Assert.AreEqual(expectedOutput, actualOutput); }
public void Test_If_Input_6_Returns_False() { CocacolaCal ccc = new CocacolaCal(); int input = 6; bool expectedOutput = false; bool actualOutput = ccc.CheckIfDivisibleBy3And5Version2(input); Assert.AreEqual(expectedOutput, actualOutput); }
public void Test_If_Various_Inputs_Returns_Cocacola( [Values(30, 45, 60, 120)] int input) { CocacolaCal ccc = new CocacolaCal(); string expectedOutput = "Cocacola"; string actualOutput = ccc.CheckIfDivisibleBy3And5(input); Assert.AreEqual(expectedOutput, actualOutput); }
public void Test_If_Input_10_Returns_An_Empty_String() { CocacolaCal ccc = new CocacolaCal(); int input = 10; string expectedOutput = ""; string actualOutput = ccc.CheckIfDivisibleBy3And5(input); Assert.AreEqual(expectedOutput, actualOutput); }
public void Test_If_Input_15_Returns_Cocacola() { CocacolaCal ccc = new CocacolaCal(); int input = 15; string expectedOutput = "Cocacola"; string actualOutput = ccc.CheckIfDivisibleBy3And5(input); Assert.AreEqual(expectedOutput, actualOutput); }