public void PersonHandler_SetAge_Person_Argument_null_Test() { // Arrange // expected PersonHandler personHandler = new PersonHandler(); // Act // actual // Assert Assert.Throws <ArgumentNullException>(() => personHandler.SetAge(null, 44)); }
public void PersonHandler_SetAge_Age_Is_0_Test() { // Arrange // expected PersonHandler personHandler = new PersonHandler(); // Act // actual // Assert Assert.Throws <ArgumentException>(() => personHandler.SetAge(person, 0)); }
public void PersonHandler_SetAge_Test() { // Arrange // expected PersonHandler personHandler = new PersonHandler(); personHandler.SetAge(person, 44); // Act // actual int iActualAge = person.Age; // Assert Assert.AreEqual(44, iActualAge); }