Example #1
0
        public void ImplementedInterfaces_ClassImplementsGenericICollectionOfString_ReturnsCodeInterfaceForICollection()
        {
            CreateProjectContent();
            CreatePublicClass("MyClass");
            AddInterfaceToClassBaseTypes("System.Collections.Generic.ICollection", "System.Collections.Generic.ICollection{System.String}");

            CodeElements  codeElements  = codeClass.ImplementedInterfaces;
            CodeInterface codeInterface = codeElements.FirstCodeInterfaceOrDefault();

            Assert.AreEqual(1, codeElements.Count);
            Assert.AreEqual("System.Collections.Generic.ICollection<System.String>", codeInterface.FullName);
        }