public void IsPropertyGetter_MethodNamedLikeGetter_ReturnsFalse()
        {
            Method sample           = TestHelper.GetSample <IntrospectionUtility_ClassSample> ("get_NonExistingProperty");
            bool   isPropertyGetter = IntrospectionUtility.IsPropertyGetter(sample);

            Assert.That(isPropertyGetter, Is.False);
        }
        public void IsPropertyGetter_PropertyGetter_ReturnsTrue()
        {
            Method sample           = TestHelper.GetSample <IntrospectionUtility_ClassSample> ("get_AnyProperty");
            bool   isPropertyGetter = IntrospectionUtility.IsPropertyGetter(sample);

            Assert.That(isPropertyGetter, Is.True);
        }
        public void IsPropertyGetter_DummyMethod_ReturnsFalse()
        {
            TypeNode stringTypeNode   = IntrospectionUtility.TypeNodeFactory <string>();
            Method   sample           = TestHelper.GetSample <IntrospectionUtility_ClassSample> ("Dummy", stringTypeNode);
            bool     isPropertyGetter = IntrospectionUtility.IsPropertyGetter(sample);

            Assert.That(isPropertyGetter, Is.False);
        }
        public void IsPropertyGetter_MethodWithParameterNamedLikeGetter_ReturnsFalse()
        {
            TypeNode stringTypeNode   = IntrospectionUtility.TypeNodeFactory <string>();
            Method   sample           = TestHelper.GetSample <IntrospectionUtility_ClassSample> ("get_NonExistingProperty", stringTypeNode);
            bool     isPropertyGetter = IntrospectionUtility.IsPropertyGetter(sample);

            Assert.That(isPropertyGetter, Is.False);
        }
        public void IsPropertyGetter_PropertySetter_ReturnsFalse()
        {
            TypeNode objectTypeNode   = IntrospectionUtility.TypeNodeFactory <Object>();
            Method   sample           = TestHelper.GetSample <IntrospectionUtility_ClassSample> ("set_AnyProperty", objectTypeNode);
            bool     isPropertyGetter = IntrospectionUtility.IsPropertyGetter(sample);

            Assert.That(isPropertyGetter, Is.False);
        }