public void AllItemsAreNotNullShouldPassWhenTrue()
        {
            // arrange
            var assert   = new Asserter();
            var sequence = new List <object>()
            {
                new object(),
                new object(),
                new object(),
            };

            // act, assert
            assert.AllItemsAreNotNull(sequence);
        }
        public void AllItemsAreNotNullShouldNotAllowNullSequence()
        {
            // arrange
            var assert   = new Asserter();
            var sequence = default(IEnumerable <object>);

            try
            {
                // act
                assert.AllItemsAreNotNull(sequence);
            }
            catch (AssertFailedException ex)
            {
                // assert
                Assert.AreEqual(GetExpectedMessage(nameof(sequence)), ex.Message);
                return;
            }

            Assert.Fail("An exception was expected, but not thrown.");
        }
        public void AllItemsAreNotNullShouldFailWhenFalse()
        {
            // arrange
            var assert   = new Asserter();
            var sequence = new List <object>()
            {
                new object(),
                default(object),
                new object(),
            };

            try
            {
                // act
                assert.AllItemsAreNotNull(sequence);
            }
            catch (AssertFailedException)
            {
                // assert
                return;
            }

            Assert.Fail("An exception was expected, but not thrown.");
        }