public void SubtractsNumberUsingCommandAndReturnsNegativeNumberWithPublicProperty(int number, int expected) { // Arrange var subtractCommand = new SubtractCommand(number); // Act subtractCommand.Do(); var result = subtractCommand.Number; // Assert That(result, Is.EqualTo(expected)); }
public void SubtractsNumberAndUndoesOperationResultingInBaseZeroValue(int number, int expected) { // Arrange var subtractCommand = new SubtractCommand(number); subtractCommand.Do(); // Act subtractCommand.Undo(); var result = subtractCommand.Number; // Assert That(result, Is.EqualTo(expected)); }