Exemplo n.º 1
0
        public void Should_verify_methods_if_method_is_known()
        {
            var method = GetMethodInfo(() => TestKnownStaticType.Get42());
            var expr   = Expression.Call(method);
            var verify = Create(m => m == method);

            var verified = verify(expr);

            AssertVerified(verified);
        }
Exemplo n.º 2
0
        public void Should_refute_methods_if_method_is_unknown()
        {
            var method = GetMethodInfo <int>(() => TestKnownStaticType.Get42());
            var expr   = Expression.Call(method);
            var verify = Create();

            var refuted = verify(expr);

            AssertRefuted(refuted);
        }