public void BuilderWithoutInheritsDoesNothing() {
            // Arrange
            var builder = new ViewPageControlBuilder();
            var derivedType = new CodeTypeDeclaration();
            derivedType.BaseTypes.Add("basetype");

            // Act
            builder.ProcessGeneratedCode(null, null, derivedType, null, null);

            // Assert
            Assert.AreEqual("basetype", derivedType.BaseTypes.Cast<CodeTypeReference>().Single().BaseType);
        }
        public void BuilderWithInheritsSetsBaseType()
        {
            // Arrange
            var builder = new ViewPageControlBuilder { Inherits = "inheritedtype" };
            var derivedType = new CodeTypeDeclaration();
            derivedType.BaseTypes.Add("basetype");

            // Act
            builder.ProcessGeneratedCode(null, null, derivedType, null, null);

            // Assert
            Assert.Equal("inheritedtype", derivedType.BaseTypes.Cast<CodeTypeReference>().Single().BaseType);
        }
        public void BuilderWithoutInheritsDoesNothing()
        {
            // Arrange
            var builder     = new ViewPageControlBuilder();
            var derivedType = new CodeTypeDeclaration();

            derivedType.BaseTypes.Add("basetype");

            // Act
            builder.ProcessGeneratedCode(null, null, derivedType, null, null);

            // Assert
            Assert.Equal("basetype", derivedType.BaseTypes.Cast <CodeTypeReference>().Single().BaseType);
        }
        public void BuilderWithInheritsSetsBaseType()
        {
            // Arrange
            var builder = new ViewPageControlBuilder {
                Inherits = "inheritedtype"
            };
            var derivedType = new CodeTypeDeclaration();

            derivedType.BaseTypes.Add("basetype");

            // Act
            builder.ProcessGeneratedCode(null, null, derivedType, null, null);

            // Assert
            Assert.AreEqual("inheritedtype", derivedType.BaseTypes.Cast <CodeTypeReference>().Single().BaseType);
        }