public void Points_WhenSetValue_ShouldReturnCorrectValue(int actual) { //Arrange var armour = new ArmourAbstractMock("Model", 4000, 500, actual, ArmourType.Aerogel); //Act & Assert Assert.AreEqual(armour.Points, actual); }
public void Points_WhenToStringIsCalled_ShouldReturnMessage(string acutal) { //Arrange var armour = new ArmourAbstractMock("Model", 4000, 500, 60, ArmourType.Aerogel); //Act var result = armour.ToString(); //Assert StringAssert.Contains(result, acutal); }
public void Points_WhenValueIsOutOfRange_ShouldThrowArgumentOutOfRangeException(int points) { //Arrange & Act & Assert var armour = new ArmourAbstractMock("Model", 4000, 500, points, ArmourType.Aerogel); }