Beispiel #1
0
        public void Property_is_null()
        {
            // Arrange
            var sut = new RecursiveTestHelperWithOneProp
            {
                Number = null,
            };

            // Assert
            Assert.Throws <XunitException>(() => sut.Should().NotContainNullsOrEmptyEnumerables());
        }
Beispiel #2
0
        public void Property_is_not_null()
        {
            // Arrange
            var sut = new RecursiveTestHelperWithOneProp
            {
                Number = 1,
            };

            // Assert
            sut.Should().NotContainNullsOrEmptyEnumerables();
        }