コード例 #1
0
        public void ShouldReturnInfoEvenForExcludedMethods()
        {
            var inspector = new ReflectionConversationalMetaInfoInspector();

            inspector.GetMethodInfo(Reflector.MethodInfo <Sample>(x => x.PersistentMethodExcluded())).Should().Not.Be.Null();
        }
コード例 #2
0
        public void ShouldNotIncludeMethodNotMarked()
        {
            var inspector = new ReflectionConversationalMetaInfoInspector();

            inspector.GetMethodInfo(Reflector.MethodInfo <Sample>(x => x.NoPersistentMethod())).Should().Be.Null();
        }