public void DidNotRaiseWhenUsedWithAValidParameterlessMethodReturningObject() { var obj = new LambdaRelatedTests.AnObjectWithParameterLessMethodThatCanBeInvokedLikeLambdas(); Func <object> sut = obj.AScalarParameterLessMethodThatShouldNotCrash; Check.ThatCode(sut).DoesNotThrow(); }
public void DidNotRaiseWhenUsedWithAValidParameterlessMethodReturningObject() { var obj = new LambdaRelatedTests.AnObjectWithParameterLessMethodThatCanBeInvokedLikeLambdas(); Func<object> sut = obj.AScalarParameterLessMethodThatShouldNotCrash; Check.ThatCode(sut).DoesNotThrow(); }
public void DidNotRaiseWhenUsedWithAValidParameterlessVoidMethod() { var sut = new LambdaRelatedTests.AnObjectWithParameterLessMethodThatCanBeInvokedLikeLambdas(); Check.ThatCode(sut.AVoidParameterLessMethodThatShouldNotCrash).DoesNotThrow(); }