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

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

            Assert.AreEqual(1, codeElements.Count);
            Assert.AreEqual("System.Collections.Generic.ICollection<System.String>", codeInterface.FullName);
        }
        public void ImplementedInterfaces_ClassImplementsIDisposable_ReturnsCodeInterfaceForIDisposable()
        {
            CreateClass(
                "using System;\r\n" +
                "class MyClass : IDisposable {}");

            global::EnvDTE.CodeElements codeElements = codeClass.ImplementedInterfaces;

            CodeInterface codeInterface = codeElements.FirstCodeInterfaceOrDefault();

            Assert.AreEqual(1, codeElements.Count);
            Assert.AreEqual("System.IDisposable", codeInterface.FullName);
        }
        public void ImplementedInterfaces_ClassImplementsGenericICollectionOfString_ReturnsCodeInterfaceForICollection()
        {
            CreateClass(
                "using System;\r\n" +
                "using System.Collections.Generic;\r\n" +
                "class MyClass : ICollection<string> {}");

            global::EnvDTE.CodeElements codeElements = codeClass.ImplementedInterfaces;

            CodeInterface codeInterface = codeElements.FirstCodeInterfaceOrDefault();

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