public void IsEmpty_AllPropertiesEmpty_ExpectTrue() { //Arrange var poemDTO = new PoemDTO(); //Act var testResult = poemDTO.IsEmpty(); //Assert Assert.True(testResult); }
public void IsEmpty_MixProperties_ExpectFalse() { //Arrange var poemDTO = new PoemDTO() { Body = "body" }; //Act var testResult = poemDTO.IsEmpty(); //Assert Assert.False(testResult); }
public void IsEmpty_AllPropertiesNull_ExpectTrue() { //Arrange var poemDTO = new PoemDTO(); poemDTO.Title = null; poemDTO.Body = null; //Act var testResult = poemDTO.IsEmpty(); //Assert Assert.True(testResult); }
public void IsEmpty_AllPropertiesNonEmpty_ExpectFalse() { //Arrange var poemDTO = new PoemDTO() { Title = "title", Body = "body" }; //Act var testResult = poemDTO.IsEmpty(); //Assert Assert.False(testResult); }