public void SetOneTwoThree_WithoutArguments_SetOneTwoThree() { // Arrange MyActionClass actionClass = new MyActionClass(); Action action = new Action(actionClass.SetOneTwoThree); // Act action(); // Assert Assert.AreEqual(123, actionClass.Result); }
public void MultiplyAndSet_WithOneTwoMinusOneTwo_SetMinusFour() { // Arrange MyActionClass actionClass = new MyActionClass(); // TODO Create an action for the method under the test. // Act // TODO Call the action with parameters. // Assert Assert.AreEqual(-4, actionClass.Result); }
public void SumAndSet_WithOneTwoThree_SetSix() { // Arrange MyActionClass actionClass = new MyActionClass(); // TODO Create an action for the method under the test. // Act // TODO Call the action with parameters. // Assert Assert.AreEqual(6, actionClass.Result); }
public void SubtractAndSet_WithThreeFour_SetMinusOne() { // Arrange MyActionClass actionClass = new MyActionClass(); // TODO Create an action for the method under the test. // Act // TODO Call the action with parameters. // Assert Assert.AreEqual(-1, actionClass.Result); }
public void SetResult_WithTwoThreeFour_SetOneTwoThree() { // Arrange MyActionClass actionClass = new MyActionClass(); // TODO Create an action for the method under the test. // Act // TODO Call the action with parameters. // Assert Assert.AreEqual(234, actionClass.Result); }