public void GivenThreeIntegers_WhenMaxIntegerAtPositionThree_ShouldReturnThatValue(int firstValue, int secondValue, int thirdValue) { int expectedResult = thirdValue; int result = FindMaximumNumber <int> .FindMaximum(firstValue, secondValue, thirdValue); Assert.AreEqual(expectedResult, result); }
public void GivenThreeString_WhenMaxStringAtPositionThree_ShouldReturnThatValue(string firstValue, string secondValue, string thirdValue) { string expectedResult = thirdValue; string result = FindMaximumNumber <string> .FindMaximum(firstValue, secondValue, thirdValue); Assert.AreEqual(expectedResult, result); }
public void GivenThreeFloat_WhenMaxFloatAtPositionTwo_ShouldReturnThatValue(float firstValue, float secondValue, float thirdValue) { float expectedResult = secondValue; float result = FindMaximumNumber <float> .FindMaximum(firstValue, secondValue, thirdValue); Assert.AreEqual(expectedResult, result); }