예제 #1
0
        public void IsAnyNullOrEmpty_InputIsNotEmptyButValuesNull_ReturnTrue()
        {
            // Arrange
            var emptyObject = new QuestionOrderDto();
            var isAnyEmpty  = Util.IsAnyNullOrEmpty(emptyObject);

            // Assert
            Assert.IsTrue(isAnyEmpty);
        }
예제 #2
0
        public void IsAnyNullOrEmpty_InputIsNotEmptyButSingleValueIsNull_ReturnFalse()
        {
            // Arrange
            var emptyObject = new QuestionOrderDto {
                OrderNbr = 1, QuestionId = 1
            };
            var isAnyEmpty = Util.IsAnyNullOrEmpty(emptyObject);

            // Assert
            Assert.IsTrue(isAnyEmpty);
        }