37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Collections.Generic;
|
|
using Microsoft.AspNet.Razor.Parser;
|
|
|
|
namespace Microsoft.AspNet.Razor.Test.Framework
|
|
{
|
|
public abstract class CsHtmlMarkupParserTestBase : MarkupParserTestBase
|
|
{
|
|
protected override ISet<string> KeywordSet
|
|
{
|
|
get { return CSharpCodeParser.DefaultKeywords; }
|
|
}
|
|
|
|
protected override BlockFactory CreateBlockFactory()
|
|
{
|
|
return new BlockFactory(Factory ?? CreateSpanFactory());
|
|
}
|
|
|
|
protected override SpanFactory CreateSpanFactory()
|
|
{
|
|
return SpanFactory.CreateCsHtml();
|
|
}
|
|
|
|
public override ParserBase CreateMarkupParser()
|
|
{
|
|
return new HtmlMarkupParser();
|
|
}
|
|
|
|
public override ParserBase CreateCodeParser()
|
|
{
|
|
return new CSharpCodeParser();
|
|
}
|
|
}
|
|
}
|