diff --git a/Solutions/Ais.Net.Specs/Ais/Net/Specs/NmeaStreamParserSpecsSteps.cs b/Solutions/Ais.Net.Specs/Ais/Net/Specs/NmeaStreamParserSpecsSteps.cs index f4f829a..b13c5a3 100644 --- a/Solutions/Ais.Net.Specs/Ais/Net/Specs/NmeaStreamParserSpecsSteps.cs +++ b/Solutions/Ais.Net.Specs/Ais/Net/Specs/NmeaStreamParserSpecsSteps.cs @@ -124,7 +124,7 @@ public void ThenTheLineErrorReportShouldIncludeAnExceptionReportingThatTheExpect Assert.IsInstanceOf(call.Error); var e = (ArgumentException)call.Error; - Assert.AreEqual("Invalid data. Expected '!' at sentence start", e.Message); + Assert.AreEqual("Invalid data. Expected '!' at sentence start (Parameter 'line')", e.Message); } [Then("the message error report (.*) should include an exception reporting that the message appears to be incomplete")] @@ -134,7 +134,7 @@ public void ThenTheMessageErrorReportShouldIncludeAnExceptionReportingThatTheMes Assert.IsInstanceOf(call.Error); var e = (ArgumentException)call.Error; - Assert.AreEqual("Invalid data. The message appears to be missing some characters - it may have been corrupted or truncated.", e.Message); + Assert.AreEqual("Invalid data. The message appears to be missing some characters - it may have been corrupted or truncated. (Parameter 'line')", e.Message); } [Then("the message error report (.*) should include an exception reporting that the padding is missing")] @@ -144,7 +144,7 @@ public void ThenTheMessageErrorReportShouldIncludeAnExceptionReportingThatThePad Assert.IsInstanceOf(call.Error); var e = (ArgumentException)call.Error; - Assert.AreEqual("Invalid data. Payload padding field not present - the message may have been corrupted or truncated", e.Message); + Assert.AreEqual("Invalid data. Payload padding field not present - the message may have been corrupted or truncated (Parameter 'line')", e.Message); } [Then("the message error report (.*) should include an exception reporting that the checksum is missing")] @@ -154,7 +154,7 @@ public void ThenTheMessageErrorReportShouldIncludeAnExceptionReportingThatTheChe Assert.IsInstanceOf(call.Error); var e = (ArgumentException)call.Error; - Assert.AreEqual("Invalid data. Payload checksum not present - the message may have been corrupted or truncated", e.Message); + Assert.AreEqual("Invalid data. Payload checksum not present - the message may have been corrupted or truncated (Parameter 'line')", e.Message); } [Then("the message error report (.*) should include an exception reporting that the expected exclamation mark is missing")] @@ -164,7 +164,7 @@ public void ThenTheMessageErrorReportShouldIncludeAnExceptionReportingThatTheExp Assert.IsInstanceOf(call.Error); var e = (ArgumentException)call.Error; - Assert.AreEqual("Invalid data. Expected '!' at sentence start", e.Message); + Assert.AreEqual("Invalid data. Expected '!' at sentence start (Parameter 'line')", e.Message); } [Then("the message error report (.*) should include an exception reporting that an unrecognized field is present")] diff --git a/Solutions/Ais.Net.Specs/Ais/Net/Specs/ParsePayloadSpecs.feature.cs b/Solutions/Ais.Net.Specs/Ais/Net/Specs/ParsePayloadSpecs.feature.cs index 5364de0..2116566 100644 --- a/Solutions/Ais.Net.Specs/Ais/Net/Specs/ParsePayloadSpecs.feature.cs +++ b/Solutions/Ais.Net.Specs/Ais/Net/Specs/ParsePayloadSpecs.feature.cs @@ -26,7 +26,7 @@ public partial class ParsePayloadSpecsFeature private TechTalk.SpecFlow.ITestRunner testRunner; - private string[] _featureTags = ((string[])(null)); + private static string[] featureTags = ((string[])(null)); #line 1 "ParsePayloadSpecs.feature" #line hidden @@ -36,7 +36,7 @@ public virtual void FeatureSetup() { testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner(); TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Ais/Net/Specs", "ParsePayloadSpecs", " In order process AIS messages from an nm4 file\r\n As a developer\r\n I wan" + - "t the NmeaPayloadParser to be able report the message type", ProgrammingLanguage.CSharp, ((string[])(null))); + "t the NmeaPayloadParser to be able report the message type", ProgrammingLanguage.CSharp, featureTags); testRunner.OnFeatureStart(featureInfo); } @@ -48,28 +48,28 @@ public virtual void FeatureTearDown() } [NUnit.Framework.SetUpAttribute()] - public virtual void TestInitialize() + public void TestInitialize() { } [NUnit.Framework.TearDownAttribute()] - public virtual void TestTearDown() + public void TestTearDown() { testRunner.OnScenarioEnd(); } - public virtual void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) { testRunner.OnScenarioInitialize(scenarioInfo); testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(NUnit.Framework.TestContext.CurrentContext); } - public virtual void ScenarioStart() + public void ScenarioStart() { testRunner.OnScenarioStart(); } - public virtual void ScenarioCleanup() + public void ScenarioCleanup() { testRunner.CollectScenarioErrors(); } @@ -88,28 +88,18 @@ public virtual void ScenarioCleanup() [NUnit.Framework.TestCaseAttribute("B3o8B<00F8:0h694gOtbgwqUoP06", "0", "18", null)] [NUnit.Framework.TestCaseAttribute("H000000000000000000000000000", "0", "24", null)] [NUnit.Framework.TestCaseAttribute("H3m9b308tL5