Mono.Cecil.Tests.TypeTests.TypeExtentingGenericOfSelf C# (CSharp) Method

TypeExtentingGenericOfSelf() private method

private TypeExtentingGenericOfSelf ( ) : void
return void
        public void TypeExtentingGenericOfSelf()
        {
            TestCSharp ("Generics.cs", module => {
                var rec_child = module.GetType ("RecChild");

                Assert.IsNotNull (rec_child);
                Assert.IsNotNull (rec_child.BaseType);

                var generic_instance = rec_child.BaseType as GenericInstanceType;

                Assert.IsNotNull (generic_instance);

                Assert.AreEqual (1, generic_instance.GenericArguments.Count);
                Assert.AreEqual (rec_child, generic_instance.GenericArguments [0]);
            });
        }