Exemple #1
0
        public void ShouldReturnInfoEvenForExcludedMethods()
        {
            var inspector = new ReflectionConversationalMetaInfoInspector();

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

            inspector.GetInfo(typeof(object)).Should().Be.Null();
        }
Exemple #3
0
        public void ShouldNotIncludeMethodNotMarked()
        {
            var inspector = new ReflectionConversationalMetaInfoInspector();

            inspector.GetMethodInfo(Reflector.MethodInfo <Sample>(x => x.NoPersistentMethod())).Should().Be.Null();
        }
Exemple #4
0
        public void ShouldIncludeClass()
        {
            var inspector = new ReflectionConversationalMetaInfoInspector();

            inspector.GetInfo(typeof(Sample)).Should().Not.Be.Null();
        }