Beispiel #1
0
        public void MethodOnExternalClassOverriddenInInOwnCode()
        {
            Action act = () => _derivedClassInOwnCodeAsExternalClass.Method(null /* no warning */);

            act.ShouldThrow <ArgumentNullException>("derived method has been rewritten altough external base method is (unannotated) nullable")
            .And.ParamName.Should().Be("a");
        }
Beispiel #2
0
        public void Method()
        {
            Action act = () => _externalClass.Method(null /*Expect no warning*/);

            act.ShouldNotThrow();
        }
Beispiel #3
0
        public void MethodOnExternalClass()
        {
            Action act = () => _externalClass.Method(null);

            act.ShouldNotThrow();
        }