Source

Resharper Spell Checker / ReSpeller.RSTests / VBasicHighlightingsTest.cs

Full commit
using JetBrains.Application.Settings;
using JetBrains.ReSharper.Daemon;
using JetBrains.ReSharper.Daemon.CSharp;
using JetBrains.ReSharper.DaemonTests.VB;
using NUnit.Framework;
using ReSpeller.Highlightings;

namespace ReSpeller.RSTests
{
  [TestFixture]
  public class VBasicHighlightingsTest : VBHighlightingTestBase
  {
    protected override bool HighlightingPredicate(IHighlighting highlighting, IContextBoundSettingsStore settingsstore)
    {
      return highlighting is StringLiteralTypoHighlighting 
             || highlighting is IdentifierTypoHighlighting
             || highlighting is CommentTypoHighlighting;
    }

    protected override string RelativeTestDataPath
    {
      get { return @"Highlightings\VBasic"; }
    }

    [TestCase("Module.vb")]
    [TestCase("Field.vb")]
    [TestCase("Local.vb")]
    [TestCase("Method.vb")]
    [TestCase("Namespace.vb")]
    [TestCase("Property.vb")]
    [TestCase("Comment.vb")]
    [TestCase("String.vb")]
    public void Test(string testName)
    {
      DoTestFiles(testName);
    }
  }
}