public void TestOfMaxOfThreeNumbersWithStringUsingGeneric(string firstNumber, string secondNumber, string thirdNumber) { //Arrange string expected = "50"; //Act GenericMaximum <string> obj = new GenericMaximum <string>(); string actual = obj.MaxFunction1(firstNumber, secondNumber, thirdNumber); //Assert Assert.AreEqual(expected, actual); }
public void TestOfMaxOfThreeNumbersWithFloatValuesUsingGeneric(float firstNumber, float secondNumber, float thirdNumber) { //Arrange float expected = 50.1f; //Act GenericMaximum <float> obj = new GenericMaximum <float>(); float actual = obj.MaxFunction1(firstNumber, secondNumber, thirdNumber); //Assert Assert.AreEqual(expected, actual); }