public void ThenCanSuccessfullyMatchSpecialCharacters() { var scenarioOutline = new ScenarioOutline { Name = "Adding several numbers (foo-bar, foo bar)" }; var exampleRow = new[] { "40", "50", "90" }; var signatureBuilder = new NUnit2ExampleSignatureBuilder(); Regex signature = signatureBuilder.Build(scenarioOutline, exampleRow); var isMatch = signature.IsMatch("Pickles.TestHarness.AdditionFeature.AddingSeveralNumbersFoo_BarFooBar(\"40\",\"50\",\"90\",System.String[])".ToLowerInvariant()); Check.That(isMatch).IsTrue(); }
public void ThenCanSuccessfullyMatchExamplesWithLongValues() { var scenarioOutline = new ScenarioOutline { Name = "Deal correctly with overlong example values" }; var exampleRow = new[] { "Please enter a valid two letter country code (e.g. DE)!", "This is just a very very very veery long error message!" }; var signatureBuilder = new NUnit2ExampleSignatureBuilder(); var signature = signatureBuilder.Build(scenarioOutline, exampleRow); var isMatch = signature.IsMatch("Pickles.TestHarness.nunit.ScenarioOutlinesFeature.DealCorrectlyWithOverlongExampleValues(\"Please enter a valid two letter country code (e.g. DE)!\",\"This is just a very very very veery long error message!\",null)".ToLowerInvariant()); Check.That(isMatch).IsTrue(); }