Source

YouCantSpell / src / YouCantSpell.ReSharper.v71.Test / SpellingQuickFixAvailabilityTest.cs

Full commit
using JetBrains.ReSharper.Daemon;
using JetBrains.ReSharper.Intentions.Test;
using JetBrains.ReSharper.Psi;
using NUnit.Framework;

namespace YouCantSpell.ReSharper.v71.Test
{
	[TestFixture]
	public class SpellingQuickFixAvailabilityTest : QuickFixAvailabilityTestBase
	{

		protected override bool HighlightingPredicate(IHighlighting highlighting, IPsiSourceFile psiSourceFile) {
			return highlighting is SpellingErrorHighlightingBase;
		}

		protected override string RelativeTestDataPath {
			get { return @"Simple\QuickFix\Availability\v71"; }
		}

		[Test]
		[TestCase("Mispeled.cs")]
		[TestCase("SkipInherrited.cs")]
		[TestCase("StringLiteral.cs")]
		[TestCase("Keyword.cs")]
		[TestCase("KnownIdentifiers.cs")]
		[TestCase("Delepsim.js")]
		public void Test(string testName) {
			DoTestFiles(testName);
		}

	}
}