Source

Resharper Spell Checker / ReSpeller.RSTests / XmlHighlightingsTest.cs

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

namespace ReSpeller.RSTests
{
  [TestFixture]
  public class XmlHighlightingTest : CSharpHighlightingTestBase
  {
    protected override bool HighlightingPredicate(IHighlighting highlighting, IContextBoundSettingsStore settingsstore)
    {
      return highlighting is MarkupTextTypoHighlighting
        || highlighting is CommentTypoHighlighting
        || highlighting is MarkupAttributeTypoHighlighting;
    }

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

    [Test]
    [TestCase("Xml.xml")]
    public void Test(string testName)
    {
      DoTestFiles(testName);
    }
  }
}