public void DefaultConstructor_WithType_NoDefault_FromStruct()
        {
            var cd = DelegateFactory.DefaultContructor <TestStruct>();

            Assert.IsNull(cd);
        }
        public void EventAdd_ByObjectAndType_NotExistingEvent()
        {
            var accessor = _testStructType.EventAdd <TestClass.PrivateEventArgs>("PrivateEvent");

            Assert.IsNull(accessor);
        }
        public void EventAdd_ByTypes_NotExistingEvent()
        {
            var accessor = DelegateFactory.EventAdd <TestStruct, TestClass.PrivateEventArgs>("PrivateEvent");

            Assert.IsNull(accessor);
        }
Example #4
0
        public void PropertySet_ByTypes_NonExisting()
        {
            var ps = DelegateFactory.PropertySet <TestClass, string>("NonExisting");

            Assert.IsNull(ps);
        }
Example #5
0
        public void PropertySet_ByExtensionAndReturnType_NonExisting()
        {
            var ps = DelegateFactory.PropertySet <TestClass, string>("NonExisting");

            Assert.IsNull(ps);
        }
Example #6
0
        public void GenericMethod_TypeParameter_NotAssignebleToClass()
        {
            var m = DelegateFactory.StaticMethod <TestClass, Func <int, int>, int>("StaticGenericMethodWithClass");

            Assert.IsNull(m);
        }
Example #7
0
        public void PropertySet_ByObjects_NonExisting()
        {
            var ps = _testStrucType.PropertySet("NonExisting");

            Assert.IsNull(ps);
        }
Example #8
0
        public void PropertySet_ByObjects_NonExisting()
        {
            var sps = DelegateFactory.StaticPropertySet <TestClass, string>("NonExisting");

            Assert.IsNull(sps);
        }
Example #9
0
        public void PropertySet_ByObjects_OnlyRead()
        {
            var sps = TestClassType.StaticPropertySet("StaticOnlyGetProperty");

            Assert.IsNull(sps);
        }
Example #10
0
        public void FieldGet_ByTypes_NonExisting()
        {
            var fg = DelegateFactory.FieldGet <TestClass, string>("NonExisting");

            Assert.IsNull(fg);
        }
Example #11
0
        public void FieldGet_ByExtensionAndReturnType_NonExisting()
        {
            var fg = DelegateFactory.FieldGet <TestClass, string>("NonExisting");

            Assert.IsNull(fg);
        }
        public void ConstructorByDelegateWithType_NoCtor_NoParams()
        {
            var c = DelegateFactory.Contructor <Func <TestClassNoDefaultCtor> >();

            Assert.IsNull(c);
        }
        public void ConstructorByDelegateWithType_NoCtor_BoolParam_FromStruct()
        {
            var c = DelegateFactory.Contructor <Func <bool, TestStruct> >();

            Assert.IsNull(c);
        }
        public void ConstructorByDelegateWithType_NoCtor_BoolIntParam()
        {
            var c = DelegateFactory.Contructor <Func <bool, int, TestClassNoDefaultCtor> >();

            Assert.IsNull(c);
        }
        public void IndexerSet_ByExtensionAndReturnType_OnlyWrite_FromStruct()
        {
            var @is = _testStrucType.IndexerSet <string, string>();

            Assert.IsNull(@is);
        }
Example #16
0
        public void PropertySet_ByExtensionAndReturnType_OnlyRead()
        {
            var sps = TestClassType.StaticPropertySet <string>("StaticOnlyGetProperty");

            Assert.IsNull(sps);
        }
Example #17
0
        public void NoGenericMethod_ShouldNot_Return_NonGeneric_With_TheSame_Name()
        {
            var m = DelegateFactory.StaticMethod <TestClass, Action, string>("StaticVoidPublic");

            Assert.IsNull(m);
        }
        public void IndexerSet_ByObjects_NonExisting()
        {
            var @is = _testClassType.IndexerSet(typeof(ulong), typeof(ulong));

            Assert.IsNull(@is);
        }
Example #19
0
        public void GenericMethod_TypeParameter_NotAssignebleToStruct()
        {
            var m = DelegateFactory.StaticMethod <TestClass, Func <TestClass, TestClass>, TestClass>("StaticGenericMethodWithStruc");

            Assert.IsNull(m);
        }
        public void IndexerSet_ByObjects_OnlyRead()
        {
            var @is = _testClassType.IndexerSet(typeof(string), typeof(string));

            Assert.IsNull(@is);
        }
Example #21
0
        public void PropertySet_ByObjects_OnlyRead()
        {
            var ps = _testClassType.PropertySet("OnlyGetProperty");

            Assert.IsNull(ps);
        }
        public void IndexerSet_ByTypes_NonExisting()
        {
            var @is = DelegateFactory.IndexerSet <TestClass, ulong, ulong>();

            Assert.IsNull(@is);
        }
Example #23
0
        public void PropertySet_ByTypes_OnlyRead()
        {
            var ps = DelegateFactory.PropertySet <TestClass, string>("OnlyGetProperty");

            Assert.IsNull(ps);
        }
        public void IndexerSet_ByTypes_OnlyRead()
        {
            var @is = DelegateFactory.IndexerSet <TestClass, string, string>();

            Assert.IsNull(@is);
        }
Example #25
0
        public void PropertySet_ByExtensionAndReturnType_OnlyRead()
        {
            var ps = _testClassType.PropertySet <string>("OnlyGetProperty");

            Assert.IsNull(ps);
        }
        public void IndexerSet_ByExtensionAndReturnType_NonExisting()
        {
            var @is = DelegateFactory.IndexerSet <TestClass, ulong, ulong>();

            Assert.IsNull(@is);
        }
        public void EventAdd_ByObjects_NotExistingEvent()
        {
            var accessor = _testStructType.EventAdd("PrivateEvent");

            Assert.IsNull(accessor);
        }
        public void IndexerSet_ByExtensionAndReturnType_OnlyRead()
        {
            var @is = _testClassType.IndexerSet <string, string>();

            Assert.IsNull(@is);
        }
        public void FieldSet_ByTypes_NonExisting()
        {
            var sfs = DelegateFactory.StaticFieldSet <TestClass, string>("NonExisting");

            Assert.IsNull(sfs);
        }
        public void DefaultConstructor_WithType_NoDefault_Class()
        {
            var cd = DelegateFactory.DefaultContructor <TestClassNoDefaultCtor>();

            Assert.IsNull(cd);
        }