public void Add(int num1, int num2, int num3, int expected) { //Arrange UnitTestMethods challenger = new UnitTestMethods(); //Act int actual = challenger.Add(num1, num2, num3); //Assert Assert.Equal(actual, expected); }
public void Add(int num1, int num2, int num3, int expected) { //Arrange var test = new UnitTestMethods(); //Act var actual = test.Add(num1, num2, num3); //Assert Assert.Equal(expected, actual); }
public void Add(int num1, int num2, int num3, int expected) { //Arrange UnitTestMethods myTests = new UnitTestMethods(); //Act int result = myTests.Add(num1, num2, num3); //Assert Assert.Equal(expected, result); }
public void Add(int num1, int num2, int num3, int expected) { //Arrange var m = new UnitTestMethods(); //Act var actual = m.Add(num1, num2, num3); //Assert Assert.Equal(actual, expected); }
public void AddTester(int num1, int num2, int num3, int expected) { //Arrange var add = new UnitTestMethods(); //Act var actual = add.Add(num1, num2, num3); //Assert actual.Equals(expected); }
public void Add(int num1, int num2, int num3, int expected) { //Arrange //Act //Assert UnitTestMethods unitTestAdd = new UnitTestMethods(); var actual = unitTestAdd.Add(num1, num2, num3); Assert.Equal(actual, expected); }
public void Add(int num1, int num2, int num3, int expected) { var test = new UnitTestMethods(); //Arrange: prepare the code we'll need to call the Add method //Act var actual = test.Add(num1, num2, num3); //Assert Assert.Equal(expected, actual); }
public void Add(int num1, int num2, int num3, int expected) { //Arrange UnitTestMethods sut = new UnitTestMethods(); //Act int actual = sut.Add(num1, num2, num3); //Assert Assert.Equal(expected, actual); }
//[InlineData(null, 0)] public void Add(int[] arr, int expected) { //Arrange var add = new UnitTestMethods(); //Act int x = 0; var actual = add.Add(x, expected); //Assert Assert.Equal(actual, expected); }