public void GetOddNumbers_LimitGreaterThanZero_ReturnsOddNumbersFromZeroToLimit() { // Arrange var math = new TestNinja.Fundamentals.Math(); // Act var result = math.GetOddNumbers(5); // Assert Assert.Equal(new[] { 1, 3, 5 }, result); }
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 Add_WhenCalled_ReturnSumOfArguments() { // Arrange var math = new TestNinja.Fundamentals.Math(); // Act var result = math.Add(1, 2); // Assert Assert.Equal(3, result); }
public void SetUp() { _math = new Math(); }
public void Setup() { _math = new TestNinja.Fundamentals.Math(); }
public void SetUpMathInstance() { _math = new Math(); }
public void SetUp() { //the object will be reinitialized for each test //arrange _math = new Math(); }
public void TearDown() { _math = null; }
public void SetUp() { _math = new Math(); _oddNumbers = new List <int>(); _result = 0; }
public void Initialize() { math = new Math(); }
public void TearDown() { _math = null; // not really necessary here }
public void SetUp() { // Arrange _math = new Math(); }