public void InvokeNull_NotRaiseException() { var sut = new MockCommonSpecification <object>(); var exception = Record.Exception(() => sut.GetNegationExpression().Compile().Invoke(null)); Assert.Null(exception); }
public void InvokeNullable_ReturnTrue() { var sut = new MockCommonSpecification <int?>(); var result = sut.GetNegationExpression().Compile().Invoke(0); Assert.True(result); }
public void InvokeIncorrectData_ReturnFalse <T>(T candidate) { var sut = new MockCommonSpecification <T>(); var result = sut.GetNegationExpression().Compile().Invoke(candidate); Assert.False(result); }