public void DecorateGodeGenerator_ReplacesCSharpCodeGeneratorWithMvcSpecificOne() {
            // Arrange
            MvcWebPageRazorHost host = new MvcWebPageRazorHost("foo.cshtml", "bar");
            var generator = new CSharpRazorCodeGenerator("someClass", "root.name", "foo.cshtml", host);

            // Act
            var result = host.DecorateCodeGenerator(generator);

            // Assert
            Assert.IsInstanceOfType(result, typeof(MvcCSharpRazorCodeGenerator));
            Assert.AreEqual("someClass", result.ClassName);
            Assert.AreEqual("root.name", result.RootNamespaceName);
            Assert.AreEqual("foo.cshtml", result.SourceFileName);
            Assert.AreSame(host, result.Host);
        }
        public void DecorateCodeGeneratorReturnsIncomingCodeGenerator() {
            // Arrange
            RazorCodeGenerator expected = new CSharpRazorCodeGenerator("Foo", "Bar", "Baz", CreateHost());
            
            // Act
            RazorCodeGenerator actual = CreateHost().DecorateCodeGenerator(expected);

            // Assert
            Assert.AreSame(expected, actual);
        }