예제 #1
0
            public void InvokeNull_NotRaiseException()
            {
                var sut = new MockCommonSpecification <object>();

                var exception = Record.Exception(() => sut.GetNegationExpression().Compile().Invoke(null));

                Assert.Null(exception);
            }
예제 #2
0
            public void InvokeNullable_ReturnTrue()
            {
                var sut = new MockCommonSpecification <int?>();

                var result = sut.GetNegationExpression().Compile().Invoke(0);

                Assert.True(result);
            }
예제 #3
0
            public void InvokeIncorrectData_ReturnFalse <T>(T candidate)
            {
                var sut = new MockCommonSpecification <T>();

                var result = sut.GetNegationExpression().Compile().Invoke(candidate);

                Assert.False(result);
            }