public void GetArea_Input2And2_Output4() { // Arrange IJAssignment02.Rectangle rectangle = new IJAssignment02.Rectangle(2, 2); int expected = 4; //Act int actual = rectangle.GetArea(); //Assert Assert.AreEqual(expected, actual); }
public void GetArea_Input10And10_Output100() { // Arrange IJAssignment02.Rectangle rectangle = new IJAssignment02.Rectangle(10, 10); int expected = 100; //Act int actual = rectangle.GetArea(); //Assert Assert.AreEqual(expected, actual); }
public void GetArea_WithDefaultConstructor_Output1() { // Arrange IJAssignment02.Rectangle rectangle = new IJAssignment02.Rectangle(); int expected = 1; //Act int actual = rectangle.GetArea(); //Assert Assert.AreEqual(expected, actual); }