public void ConstructorWithCodeLanguageSetsPropertiesAppropriately() { // Arrange RazorCodeLanguage language = new CSharpRazorCodeLanguage(); // Act RazorEngineHost host = new RazorEngineHost(language); // Assert VerifyCommonDefaults(host); Assert.AreSame(language, host.CodeLanguage); Assert.IsInstanceOfType(host.CreateMarkupParser(), typeof(HtmlMarkupParser)); }
public void ConstructorWithCodeLanguageSetsPropertiesAppropriately() { // Arrange var language = new CSharpRazorCodeLanguage(); // Act var host = new RazorEngineHost(language); // Assert VerifyCommonDefaults(host); Assert.Same(language, host.CodeLanguage); Assert.IsType <HtmlMarkupParser>(host.CreateMarkupParser()); }
public void ConstructorWithCodeLanguageAndMarkupParserSetsPropertiesAppropriately() { // Arrange RazorCodeLanguage language = new CSharpRazorCodeLanguage(); MarkupParser expected = new HtmlMarkupParser(); // Act RazorEngineHost host = new RazorEngineHost(language, () => expected); // Assert VerifyCommonDefaults(host); Assert.AreSame(language, host.CodeLanguage); Assert.AreSame(expected, host.CreateMarkupParser()); }
public void ConstructorWithCodeLanguageSetsPropertiesAppropriately() { // Arrange var language = new CSharpRazorCodeLanguage(); // Act var host = new RazorEngineHost(language); // Assert VerifyCommonDefaults(host); Assert.Same(language, host.CodeLanguage); Assert.IsType<HtmlMarkupParser>(host.CreateMarkupParser()); }
public void ConstructorWithCodeLanguageSetsPropertiesAppropriately() { // Arrange RazorCodeLanguage language = new CSharpRazorCodeLanguage(); // Act RazorEngineHost host = new RazorEngineHost(language); // Assert VerifyCommonDefaults(host); Assert.AreSame(language, host.CodeLanguage); Assert.IsInstanceOfType(host.CreateMarkupParser(), typeof(HtmlMarkupParser)); }
public void ConstructorWithCodeLanguageAndMarkupParserSetsPropertiesAppropriately() { // Arrange RazorCodeLanguage language = new CSharpRazorCodeLanguage(); ParserBase expected = new HtmlMarkupParser(); // Act RazorEngineHost host = new RazorEngineHost(language, () => expected); // Assert VerifyCommonDefaults(host); Assert.Same(language, host.CodeLanguage); Assert.Same(expected, host.CreateMarkupParser()); }