public void GivenThreeFloat_WhenMaxFloatAtPositionThree_ShouldReturnThatValue(float firstValue, float secondValue, float thirdValue) { float expectedResult = thirdValue; float result = FindMaximumNumber <float> .FindMaximum(firstValue, secondValue, thirdValue); Assert.AreEqual(expectedResult, result); }
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 GiventStringArray_WhenSort_ShouldReturnMAxValue() { string[] arr = { "Apple", "Peach", "Banana" }; FindMaximumNumber <string> max = new FindMaximumNumber <string>(arr); string result = max.MaxMEthod(); Assert.AreEqual("Peach", result); }
public void GiventFloatArray_WhenSort_ShouldReturnMAxValue() { float[] arr = { 23.3f, 45.5f, 87.4f, 23.3f, 4.3f, 44.4f, 9.8f }; FindMaximumNumber <float> max = new FindMaximumNumber <float>(arr); float result = max.MaxMEthod(); Assert.AreEqual(87.4f, result); }
public void GiventIntegerArray_WhenSort_ShouldReturnMAxValue() { int[] arr = { 23, 35, 87, 233, 3, 44, 98 }; FindMaximumNumber <int> max = new FindMaximumNumber <int>(arr); int result = max.MaxMEthod(); Assert.AreEqual(233, result); }