示例#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");
        }
示例#2
0
        public void Method()
        {
            Action act = () => _externalClass.Method(null /*Expect no warning*/);

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

            act.ShouldNotThrow();
        }