a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
960 B
C#
29 lines
960 B
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
using System.Web.Razor.Text;
|
|
using System.Web.Razor.Tokenizer;
|
|
using System.Web.Razor.Tokenizer.Symbols;
|
|
|
|
namespace System.Web.Razor.Test.Tokenizer
|
|
{
|
|
public abstract class VBTokenizerTestBase : TokenizerTestBase<VBSymbol, VBSymbolType>
|
|
{
|
|
private static VBSymbol _ignoreRemaining = new VBSymbol(0, 0, 0, String.Empty, VBSymbolType.Unknown);
|
|
|
|
protected override VBSymbol IgnoreRemaining
|
|
{
|
|
get { return _ignoreRemaining; }
|
|
}
|
|
|
|
protected override Tokenizer<VBSymbol, VBSymbolType> CreateTokenizer(ITextDocument source)
|
|
{
|
|
return new VBTokenizer(source);
|
|
}
|
|
|
|
protected void TestSingleToken(string text, VBSymbolType expectedSymbolType)
|
|
{
|
|
TestTokenizer(text, new VBSymbol(0, 0, 0, text, expectedSymbolType));
|
|
}
|
|
}
|
|
}
|