Esempio n. 1
0
        public void Returns_True_When_Validating_Null_Values()
        {
            // Arrange
            var assertion = new IsNullAssertion(null);

            // Act
            bool result = assertion.IsValid();

            // Assert
            Assert.IsTrue(result);
        }
Esempio n. 2
0
        public void Returns_False_When_Validating_Non_Null_Values()
        {
            // Arrange
            var assertion = new IsNullAssertion(new object());

            // Act
            bool result = assertion.IsValid();

            // Assert
            Assert.IsFalse(result);
        }