Exemplo n.º 1
0
            public void ReturnsConstructorWithGivenDelegateType()
            {
                Assert.Same(selected, instance.Constructor(delegateType));
                ConstructorTypeFilter filter = VerifyFilter(selection, delegateType);

                VerifyInstanceConstructors(filter.Source, instance);
            }
Exemplo n.º 2
0
            public void ReturnsGenericConstructorWithGivenSignature()
            {
                Constructor <TestDelegate> generic = instance.Constructor <TestDelegate>();

                VerifyGenericConstructor(selected, generic);
                ConstructorTypeFilter typed = VerifyFilter(selection, typeof(TestDelegate));

                VerifyInstanceConstructors(typed.Source, instance);
            }
Exemplo n.º 3
0
            public void ReturnsGenericConstructorWithGivenSignature()
            {
                Constructor <TestDelegate> generic = members.Constructor <TestDelegate>();

                VerifyGenericConstructor(selected, generic);
                ConstructorTypeFilter typeFilter = VerifyFilter(selection, typeof(TestDelegate));

                Assert.Same(constructors, typeFilter.Source);
            }
Exemplo n.º 4
0
            public void ReturnsConstructorWithGivenDelegateType()
            {
                Constructor actual = members.Constructor(delegateType);

                Assert.Same(selected, actual);
                ConstructorTypeFilter filter = VerifyFilter(selection, delegateType);

                Assert.Same(constructors, filter.Source);
            }