public void GetTypeReference_Constructor()
        {
            var cut = AbstractMethodTemplate.CreateClassUnderTest();
            var defaultConstructor = AbstractMethodTemplate.CreateDefaultConstructor(cut);
            var actual             = Parent.RefactoryExtensions.GetTypeReference(defaultConstructor, cut);

            Assert.AreEqual(cut.Name, actual.Type);
        }
        public void NodeDocumentation_String()
        {
            INode node = AbstractMethodTemplate.CreateClassUnderTest();

            Parent.RefactoryExtensions.SetDocumentation(node, SimpleCodeDocumentationComment);
            var actual = Parent.RefactoryExtensions.GetDocumentation(node);

            Assert.AreEqual(SimpleCodeDocumentationComment, actual);
        }
        public void NodeDocumentation_ISpecial_Artificial()
        {
            INode node    = AbstractMethodTemplate.CreateClassUnderTest();
            var   comment = new Comment(CommentType.Documentation,
                                        SimpleCodeDocumentationComment, true, Location.Empty, Location.Empty);

            Parent.RefactoryExtensions.SetDocumentation(node, comment);
            var actual = Parent.RefactoryExtensions.GetDocumentation(node);

            Assert.AreEqual(SimpleCodeDocumentationComment, actual);
        }
        public void GetTypeReference_Method()
        {
            var cut    = AbstractMethodTemplate.CreateClassUnderTest();
            var method = new MethodDeclaration
            {
                Name = "DoStuff", TypeReference = AbstractMethodTemplate.StringTypeReference
            };
            var actual = Parent.RefactoryExtensions.GetTypeReference(method, cut);

            Assert.AreEqual(AbstractMethodTemplate.StringTypeReference, actual);
        }