public void Max_WhenCalled_ReturnsGreaterArg(int a, int b, int expectResult) { //act var results = _math.Max(a, b); //Assert Assert.That(results, Is.EqualTo(expectResult)); }
public void Max_FirstArgumentIsGreater_ReturnsFirstArgument() { // Arrange int a = 20; int b = 10; int result = 20; // Act var returnValue = _math.Max(a, b); // Assert Assert.That(returnValue, Is.EqualTo(result)); }
///test cases are passed to the test method public void Max_WhenCalled_ReturnTheGreaterNumber(int a, int b, int expectedResult) { ///act var result = _math.Max(a, b); ///assert Assert.That(result, Is.EqualTo(expectedResult)); }
public void Max_WhenCalled_ReturnTheGreaterArgument(int a, int b, int expectedResult) { // Arrange, Act _result = _math.Max(a, b); // Assert _result.ShouldBe(expectedResult); }
public void Max_WhenCalled_ReturnGreaterArgument(int a, int b, int expectedResult) { //Arrange //Act var result = _math.Max(a, b); //Assert Assert.That(result, Is.EqualTo(expectedResult)); }
public void Max_WhenCalled_ReturnTheGreaterArgument(int a, int b, int expectedResult) { // var math = new Math(); // var result = _math.Max(2, 1); var result = _math.Max(a, b); //Assert.That(result, Is.EqualTo(2)); Assert.That(result, Is.EqualTo(expectedResult)); }
public void Max_NumbersInEqual_ReturnLargerArgument(int value1, int value2, int expected) { // Arrange var math = new TestNinja.Fundamentals.Math(); // Act var result = math.Max(value1, value2); // Assert Assert.Equal(expected, result); }
public void Max_WhenCalled_ReturnsRightAnswer(int a, int b, int c) { var result = _math.Max(a, b); Assert.That(result, Is.EqualTo(c)); }
public void Max_WhenCalled_ReturnMaxmimumArgument(int a, int b, int expectedResult) { var result = _math.Max(a, b); Assert.That(result, Is.EqualTo(expectedResult)); }
public void Math_Max_FirstArgumentIsGreater_ReturnMaxArgument(int argument1, int argument2, int expected) { var result = _math.Max(argument1, argument2); Assert.That(result, Is.EqualTo(expected)); }
public void Max_FirstArgumentGreater_ReturnFirstArgument() { var result = _math.Max(2, 1); Assert.That(result, Is.EqualTo(2)); }
public void Max_FirstArgumentIsGreater_ReturnFirstArgument(int a, int b, int expectedResult) { var result = _math.Max(a, b); Assert.That(result, Is.EqualTo(expectedResult)); }
public void Max_WhenCalled_ReturnsGreaterArgument(int a, int b, int expected) { var result = _math.Max(a, b); Assert.That(result, Is.EqualTo(expected)); }
public void Max_WhenCalled_ReturnTheGreaterArgument(int a, int b, int excpectedResults) { var results = _maths.Max(a, b); Assert.That(results, Is.EqualTo(excpectedResults)); }
public void Max_WhenCalled_ReturnTheGreatherArgument() { var result = math.Max(1, 0); Assert.IsTrue(result == 1); }