示例#1
0
        public void IsEmpty_AllPropertiesEmpty_ExpectTrue()
        {
            //Arrange
            var poemDTO = new PoemDTO();

            //Act
            var testResult = poemDTO.IsEmpty();

            //Assert
            Assert.True(testResult);
        }
示例#2
0
        public void IsEmpty_MixProperties_ExpectFalse()
        {
            //Arrange
            var poemDTO = new PoemDTO()
            {
                Body = "body"
            };

            //Act
            var testResult = poemDTO.IsEmpty();

            //Assert
            Assert.False(testResult);
        }
示例#3
0
        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);
        }
示例#4
0
        public void IsEmpty_AllPropertiesNonEmpty_ExpectFalse()
        {
            //Arrange
            var poemDTO = new PoemDTO()
            {
                Title = "title",
                Body  = "body"
            };

            //Act
            var testResult = poemDTO.IsEmpty();

            //Assert
            Assert.False(testResult);
        }