diff --git a/GenerateBigInteger/GenerateBigInteger.csproj b/GenerateBigInteger/GenerateBigInteger.csproj index 71d50ad..644f333 100644 --- a/GenerateBigInteger/GenerateBigInteger.csproj +++ b/GenerateBigInteger/GenerateBigInteger.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,13 +10,12 @@ Properties GenerateBigInteger GenerateBigInteger - v3.5 + v4.8 512 - 3.5 true @@ -43,17 +42,38 @@ AnyCPU prompt + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + + + true + bin\x64\ISXEVE Beta\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + - - 3.5 - - - 3.5 - - - 3.5 - + + + diff --git a/GetAllianceCorpXmlDB/GetAllianceCorpXmlDB.csproj b/GetAllianceCorpXmlDB/GetAllianceCorpXmlDB.csproj index 6469d57..acc4890 100644 --- a/GetAllianceCorpXmlDB/GetAllianceCorpXmlDB.csproj +++ b/GetAllianceCorpXmlDB/GetAllianceCorpXmlDB.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,13 +10,12 @@ Properties GetAllianceCorpXmlDB GetAllianceCorpXmlDB - v3.5 + v4.8 512 - 3.5 true @@ -45,17 +44,38 @@ true true + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + + + true + bin\x64\ISXEVE Beta\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + - - 3.5 - - - 3.5 - - - 3.5 - + + + diff --git a/Libraries/ISXEVEWrapper.dll b/Libraries/ISXEVEWrapper.dll index 8f59b9d..cd71a8a 100644 Binary files a/Libraries/ISXEVEWrapper.dll and b/Libraries/ISXEVEWrapper.dll differ diff --git a/Libraries/System.Data.SQLite.Linq.dll b/Libraries/System.Data.SQLite.Linq.dll index 54fb6ff..983b0e5 100644 Binary files a/Libraries/System.Data.SQLite.Linq.dll and b/Libraries/System.Data.SQLite.Linq.dll differ diff --git a/Libraries/System.Data.SQLite.dll b/Libraries/System.Data.SQLite.dll index ede7491..bc31936 100644 Binary files a/Libraries/System.Data.SQLite.dll and b/Libraries/System.Data.SQLite.dll differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..69cfccf --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# StealthBot +StealthBot by Stealthy. Not supported at present, but was a complete functional .NET bot using ISXEVE. + + +To compile you have to add a refrence to ISXEVEWrapper.dll to StealthBot Application or it will not compile, ISXEVEWrapper.dll can be found in your InnerSpace\.Net Programs\ folder. Some IDEs require you to open each file that refrences EVE if you tried to compile before refrencing the ISXEVEWrapper to update that EVE is a valid refrence. diff --git a/StealthBot.Core/CachedAgent.cs b/StealthBot.Core/CachedAgent.cs index b769367..bd3cad8 100644 --- a/StealthBot.Core/CachedAgent.cs +++ b/StealthBot.Core/CachedAgent.cs @@ -18,7 +18,7 @@ public sealed class CachedAgent [ProtoMember(3)] public int DivisionId; [ProtoMember(5)] - public int StationId; + public long StationId; [ProtoMember(6)] public int Level; [ProtoMember(7)] diff --git a/StealthBot.Core/Enums.cs b/StealthBot.Core/Enums.cs index c1b7837..79f2169 100644 --- a/StealthBot.Core/Enums.cs +++ b/StealthBot.Core/Enums.cs @@ -645,12 +645,12 @@ public enum HaulerModes /// /// Only go to pickup a can when we receive request events. /// - [ProtoEnum(Name = "WaitForRequestEvent", Value = 0)] + [ProtoEnum(Name = "WaitForRequestEvent")] WaitForRequestEvent = 0, /// /// Cycle all members in the fleet without waiting for request events. /// - [ProtoEnum(Name = "CycleFleetMembers", Value = 1)] + [ProtoEnum(Name = "CycleFleetMembers")] CycleFleetMembers = 1 } diff --git a/StealthBot.Core/Interfaces/IMeCache.cs b/StealthBot.Core/Interfaces/IMeCache.cs index 9529b15..de3b55d 100644 --- a/StealthBot.Core/Interfaces/IMeCache.cs +++ b/StealthBot.Core/Interfaces/IMeCache.cs @@ -14,7 +14,7 @@ public interface IMeCache string Corporation { get; } string AllianceTicker { get; } string Alliance { get; } - int StationId { get; } + long StationId { get; } int SolarSystemId { get; } int AllianceId { get; } Int64 CharId { get; } diff --git a/StealthBot.Core/Loader.cs b/StealthBot.Core/Loader.cs index e7d9357..1f74ee3 100644 --- a/StealthBot.Core/Loader.cs +++ b/StealthBot.Core/Loader.cs @@ -4,6 +4,7 @@ using System.Xml; using LavishScriptAPI; using LavishVMAPI; +using InnerSpaceAPI; [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)] @@ -11,8 +12,8 @@ namespace StealthBot.Core { public class Loader { - private readonly EventHandler _stealthBotUpdateCompleted, _stealthBotUpdated, _missionDatabaseUpdateCompleted, _npcBountiesUpdateCompleted, _possibleEwarNpcNamesUpdateCompleted; - private volatile bool _isStealthBotUpdateComplete, _wasStealthBotUpdated, _isMissionDatabaseUpdateComplete, _isNpcBountiesUpdateCompleted, _isPossibleEwarNpcNamesUpdateComplete; + private EventHandler _stealthBotUpdateCompleted, _stealthBotUpdated; + private volatile bool _isStealthBotUpdateComplete, _wasStealthBotUpdated; private readonly string _productVersion; private readonly string[] _args; @@ -20,17 +21,10 @@ public class Loader public bool LoadedSuccessfully; public string LoadErrorMessage; - private static readonly uint _minimumInnerSpaceBuild = 5866; - private static readonly DateTime _minimumIsxeveVersionDate = new DateTime(2013, 09, 11); - private static readonly int _minimumIsxeveVersionBuild = 0002; - public Loader(string productVersion, string[] args) { _stealthBotUpdateCompleted = StealthBotUpdateCompleted; _stealthBotUpdated = StealthBotUpdated; - _missionDatabaseUpdateCompleted = MissionDatabaseUpdateCompleted; - _npcBountiesUpdateCompleted = NpcBountiesUpdateCompleted; - _possibleEwarNpcNamesUpdateCompleted = PossibleEwarNpcNamesUpdateCompleted; _productVersion = productVersion; for (var indexOf = _productVersion.IndexOf('.'); indexOf >= 0; indexOf = _productVersion.IndexOf('.')) @@ -41,8 +35,11 @@ public Loader(string productVersion, string[] args) public void Load() { + InnerSpace.Echo("Checking if running in InnerSpace..."); + Console.WriteLine("public void load()"); if (!IsRunningInInnerSpace()) { + InnerSpace.Echo("Error: StealthBot must be started through InnerSpace, not by directly running the program."); LoadErrorMessage = "Error: StealthBot must be started through InnerSpace, not by directly running the program."; return; } @@ -51,13 +48,14 @@ public void Load() if (_wasStealthBotUpdated) return; - + InnerSpace.Echo("Main Load(): PreformSafetyCheck call"); LoadErrorMessage = PerformSafetyChecks(); if (LoadErrorMessage != null) return; + InnerSpace.Echo("ISXEve Loaded Returned that is was, moving on to set LoadedSuccessfully."); - LoadedSuccessfully = _isStealthBotUpdateComplete && !_wasStealthBotUpdated; + LoadedSuccessfully = true; } private static string PerformSafetyChecks() @@ -65,75 +63,9 @@ private static string PerformSafetyChecks() if (!IsIsxeveLoaded()) return "Error: ISXEVE not detected. StealthBot requires ISXEVE to run."; - if (!IsMinimumIsxeveVersionLoaded()) - { - var stringBuilder = new StringBuilder(); - - var minimumIsxeveVersion = string.Format("{0}.{1}", _minimumIsxeveVersionDate.ToString("yyyyMMdd"), _minimumIsxeveVersionBuild); - var errorVersionLine = "Error: The loaded ISXEVE is out of date. ISXEVE version {0} or later is required for StealthBot to run well."; - var formattedVersionLine = string.Format(errorVersionLine, minimumIsxeveVersion); - - stringBuilder.AppendLine(formattedVersionLine); - stringBuilder.AppendLine(@"Official test builds can be found here: http://www.isxgames.com/isxeve/test/"); - stringBuilder.AppendLine("Other test builds can frequently be found in the #isxeve topic or by asking in #isxeve."); - stringBuilder.AppendLine("If you have any questions, contact stealthy in #stealthbot or at support@stealthsoftware.net"); - - return stringBuilder.ToString(); - } - - if (!CheckInnerSpaceVersion()) - return "Error: You are running an outdated build of InnerSpace. Please ensure you're running development builds and patch InnerSpace."; - return null; } - private static bool IsMinimumIsxeveVersionLoaded() - { - string isxeveVersion = null; - - try - { - LavishScript.DataParse("${ISXEVE.Version}", ref isxeveVersion); - } - catch (Exception) - { - isxeveVersion = null; - } - - if (string.IsNullOrEmpty(isxeveVersion)) - return false; - - var fragments = isxeveVersion.Split('.'); - - if (fragments.Length != 2) - return false; - - var dateString = fragments[0]; - var versionString = fragments[1]; - - DateTime? date; - try - { - date = DateTime.ParseExact(dateString, "yyyyMMdd", null); - } - catch (FormatException) - { - return false; - } - - int version; - if (!int.TryParse(versionString, out version)) - return false; - - if (date > _minimumIsxeveVersionDate) - return true; - - if (date == _minimumIsxeveVersionDate && version >= _minimumIsxeveVersionBuild) - return true; - - return false; - } - private static bool IsRunningInInnerSpace() { return InnerSpaceAPI.InnerSpace.BuildNumber > 0; @@ -141,6 +73,7 @@ private static bool IsRunningInInnerSpace() private static bool IsIsxeveLoaded() { + InnerSpace.Echo("IsIsxeveLoaded(): Start of the function"); var isxEveLoaded = false; try @@ -152,19 +85,15 @@ private static bool IsIsxeveLoaded() return isxEveLoaded; } - private static bool CheckInnerSpaceVersion() - { - return InnerSpaceAPI.InnerSpace.BuildNumber >= _minimumInnerSpaceBuild; - } - private void CheckForUpdates() { + InnerSpace.Echo("CheckForUpdates: No Need, No Longer Maintained"); // Disable updates after STealthy code release -- CT return; - UpdateStealthBot(); - UpdateMissionDatabase(); - UpdateNpcBounties(); - UpdatePossibleEwarNpcNames(); + // UpdateStealthBot(); + //UpdateMissionDatabase(); + //UpdateNpcBounties(); + //UpdatePossibleEwarNpcNames(); //If we updated file, relaunch stealthbot. if (!_wasStealthBotUpdated) @@ -178,93 +107,6 @@ private void CheckForUpdates() LavishScript.ExecuteCommand(command.ToString()); } - private void UpdatePossibleEwarNpcNames() - { - LavishScript.Events.AttachEventTarget("PossibleEwarNpcNames_OnUpdateComplete", _possibleEwarNpcNamesUpdateCompleted); - - var possibleEwarNpcNamesVersion = ReadPossibleEwarNpcNamesVersion(); - LavishScript.ExecuteCommand( - String.Format("dotnet {0} isxGamesPatcher {0} {1} http://stealthsoftware.net/software/data/isxGamesPatcher_PossibleEwarNpcNames.xml", - "PossibleEwarNpcNames", possibleEwarNpcNamesVersion)); - - var sanityCounter = 300; - while (!_isPossibleEwarNpcNamesUpdateComplete || --sanityCounter < 0) - { - Frame.Wait(false); - } - - LavishScript.Events.DetachEventTarget("PossibleEwarNpcNames_OnUpdateComplete", _possibleEwarNpcNamesUpdateCompleted); - } - - private void UpdateNpcBounties() - { - var npcBountiesPath = string.Format("{0}\\{1}", Path.Combine(Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), "StealthBot"), "Data"), "NpcBounties.bin"); - - if (File.Exists(npcBountiesPath)) - { - var fileInfo = new FileInfo(npcBountiesPath); - if (fileInfo.Length > 0) return; - } - - LavishScript.Events.AttachEventTarget("npcBounties_OnUpdateComplete", _npcBountiesUpdateCompleted); - - LavishScript.ExecuteCommand( - String.Format("dotnet {0} isxGamesPatcher {0} {1} http://stealthsoftware.net/software/data/isxGamesPatcher_NpcBounties.xml", - "NpcBounties", 0)); - - var sanityCounter = 300; - while (!_isNpcBountiesUpdateCompleted || --sanityCounter < 0) - { - Frame.Wait(false); - } - - LavishScript.Events.DetachEventTarget("npcBounties_OnUpdateComplete", _npcBountiesUpdateCompleted); - } - - private void UpdateStealthBot() - { - LavishScript.Events.AttachEventTarget("stealthbot_OnFileUpdated", _stealthBotUpdated); - LavishScript.Events.AttachEventTarget("stealthbot_OnUpdateComplete", _stealthBotUpdateCompleted); - -#if DEBUG - LavishScript.ExecuteCommand( - String.Format("dotnet {0} isxGamesPatcher {0} {1} http://stealthsoftware.net/software/stealthbot-test/isxGamesPatcher_StealthBot-Test.xml", - "StealthBot", _productVersion)); -#else - LavishScript.ExecuteCommand( - String.Format("dotnet {0} isxGamesPatcher {0} {1} http://stealthsoftware.net/software/stealthbot/isxGamesPatcher_StealthBot.xml", - "StealthBot", _productVersion)); -#endif - - //wait for UpdateComplete - var sanityCounter = 300; //5 seconds @ 60fps, 10 seconds at 30fps - while (!_isStealthBotUpdateComplete || --sanityCounter < 0) - { - Frame.Wait(false); - } - - LavishScript.Events.DetachEventTarget("stealthbot_OnFileUpdated", _stealthBotUpdated); - LavishScript.Events.DetachEventTarget("stealthbot_OnUpdateComplete", _stealthBotUpdateCompleted); - } - - private void UpdateMissionDatabase() - { - LavishScript.Events.AttachEventTarget("missiondatabase_OnUpdateComplete", _missionDatabaseUpdateCompleted); - - var missionDatabaseVersion = ReadMissionDatabaseVersion(); - LavishScript.ExecuteCommand( - String.Format("dotnet {0} isxGamesPatcher {0} {1} http://stealthsoftware.net/software/data/isxGamesPatcher_MissionDatabase.xml", - "MissionDatabase", missionDatabaseVersion)); - - var sanityCounter = 300; - while (!_isMissionDatabaseUpdateComplete || --sanityCounter < 0) - { - Frame.Wait(false); - } - - LavishScript.Events.DetachEventTarget("missiondatabase_OnUpdateComplete", _missionDatabaseUpdateCompleted); - } - private void StealthBotUpdateCompleted(object sender, LSEventArgs e) { _isStealthBotUpdateComplete = true; @@ -275,79 +117,5 @@ private void StealthBotUpdated(object sender, LSEventArgs e) _wasStealthBotUpdated = true; } - private void MissionDatabaseUpdateCompleted(object sender, LSEventArgs e) - { - _isMissionDatabaseUpdateComplete = true; - } - - private int ReadMissionDatabaseVersion() - { - var xmlDocument = new XmlDocument(); - - var path = string.Format("{0}\\{1}", Path.Combine(Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), "StealthBot"), "Data"), "MissionDatabase.xml"); - - if (!File.Exists(path)) - return 0; - - xmlDocument.Load(path); - - var missionsNode = xmlDocument.SelectSingleNode("/Missions"); - - if (missionsNode == null) - return 0; - - var versionAttribute = missionsNode.Attributes["MissionDatabaseVersion"]; - - if (versionAttribute == null) - return 0; - - var versionString = versionAttribute.Value; - - var returnValue = 0; - - int.TryParse(versionString, out returnValue); - - return returnValue; - } - - private int ReadPossibleEwarNpcNamesVersion() - { - var xmlDocument = new XmlDocument(); - - var path = string.Format("{0}\\{1}", Path.Combine(Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), "StealthBot"), "Data"), "PossibleEwarNpcNames.xml"); - - if (!File.Exists(path)) - return 0; - - xmlDocument.Load(path); - - var missionsNode = xmlDocument.SelectSingleNode("/PossibleEwarNpcNames"); - - if (missionsNode == null) - return 0; - - var versionAttribute = missionsNode.Attributes["Version"]; - - if (versionAttribute == null) - return 0; - - var versionString = versionAttribute.Value; - - var returnValue = 0; - - int.TryParse(versionString, out returnValue); - - return returnValue; - } - - private void NpcBountiesUpdateCompleted(object sender, LSEventArgs e) - { - _isNpcBountiesUpdateCompleted = true; - } - - private void PossibleEwarNpcNamesUpdateCompleted(object sender, LSEventArgs e) - { - _isPossibleEwarNpcNamesUpdateComplete = true; - } } } diff --git a/StealthBot.Core/StealthBot.Core.csproj b/StealthBot.Core/StealthBot.Core.csproj index ffdc90c..a9e788f 100644 --- a/StealthBot.Core/StealthBot.Core.csproj +++ b/StealthBot.Core/StealthBot.Core.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,7 +10,7 @@ Properties StealthBot.Core StealthBot.Core - v4.0 + v4.8 512 @@ -50,23 +50,69 @@ false true + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + + + bin\x64\Release\ + pdbonly + x64 + 7.3 + prompt + + + true + bin\x64\ISXEVE Beta\ + TRACE;DEBUG;ISXEVE_BETA + true + full + x64 + 7.3 + prompt + false + false + - ..\Libraries\ISXEVEWrapper.dll + ..\..\..\..\..\InnerSpace\.NET Programs\ISXEVEWrapper.dll - ..\..\..\..\..\..\..\..\..\Program Files (x86)\InnerSpace\Lavish.InnerSpace.dll + ..\..\..\..\..\InnerSpace\Lavish.InnerSpace.dll False - ..\..\..\..\..\..\..\..\..\Program Files (x86)\InnerSpace\Lavish.LavishVMRuntime.dll + ..\..\..\..\..\InnerSpace\Lavish.LavishVMRuntime.dll - - False - ..\packages\protobuf-net.2.0.0.666\lib\net40\protobuf-net.dll + + ..\packages\protobuf-net.3.2.26\lib\net462\protobuf-net.dll + + + ..\packages\protobuf-net.Core.3.2.26\lib\net462\protobuf-net.Core.dll + + ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll + + + ..\packages\System.Collections.Immutable.7.0.0\lib\net462\System.Collections.Immutable.dll + + + ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll + + + + ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll + + + ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll + @@ -183,6 +229,7 @@ + diff --git a/StealthBot.Core/app.config b/StealthBot.Core/app.config new file mode 100644 index 0000000..1696df6 --- /dev/null +++ b/StealthBot.Core/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/StealthBot.Core/packages.config b/StealthBot.Core/packages.config index 3a95ccb..dda67b9 100644 --- a/StealthBot.Core/packages.config +++ b/StealthBot.Core/packages.config @@ -1,4 +1,10 @@  - + + + + + + + \ No newline at end of file diff --git a/StealthBot.SpecFlow/ActionModules/Targeting.feature.cs b/StealthBot.SpecFlow/ActionModules/Targeting.feature.cs index 3cfd9eb..90f29d2 100644 --- a/StealthBot.SpecFlow/ActionModules/Targeting.feature.cs +++ b/StealthBot.SpecFlow/ActionModules/Targeting.feature.cs @@ -1,9 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by SpecFlow (http://www.specflow.org/). -// SpecFlow Version:1.9.0.77 -// SpecFlow Generator Version:1.9.0.0 -// Runtime Version:4.0.30319.18046 +// This code was generated by SpecFlow (https://www.specflow.org/). +// SpecFlow Version:3.9.0.0 +// SpecFlow Generator Version:3.9.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -14,9 +13,11 @@ namespace StealthBot.SpecFlow.ActionModules { using TechTalk.SpecFlow; + using System; + using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.9.0.77")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.9.0.0")] [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [NUnit.Framework.TestFixtureAttribute()] [NUnit.Framework.DescriptionAttribute("Targeting")] @@ -24,21 +25,23 @@ namespace StealthBot.SpecFlow.ActionModules public partial class TargetingFeature { - private static TechTalk.SpecFlow.ITestRunner testRunner; + private TechTalk.SpecFlow.ITestRunner testRunner; + + private static string[] featureTags = new string[] { + "Targeting"}; #line 1 "Targeting.feature" #line hidden - [NUnit.Framework.TestFixtureSetUpAttribute()] + [NUnit.Framework.OneTimeSetUpAttribute()] public virtual void FeatureSetup() { testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner(); - TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Targeting", "", ProgrammingLanguage.CSharp, new string[] { - "Targeting"}); + TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "ActionModules", "Targeting", null, ProgrammingLanguage.CSharp, featureTags); testRunner.OnFeatureStart(featureInfo); } - [NUnit.Framework.TestFixtureTearDownAttribute()] + [NUnit.Framework.OneTimeTearDownAttribute()] public virtual void FeatureTearDown() { testRunner.OnFeatureEnd(); @@ -46,741 +49,896 @@ public virtual void FeatureTearDown() } [NUnit.Framework.SetUpAttribute()] - public virtual void TestInitialize() + public void TestInitialize() { } [NUnit.Framework.TearDownAttribute()] - public virtual void ScenarioTearDown() + public void TestTearDown() { testRunner.OnScenarioEnd(); } - public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) + { + testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(NUnit.Framework.TestContext.CurrentContext); + } + + public void ScenarioStart() { - testRunner.OnScenarioStart(scenarioInfo); + testRunner.OnScenarioStart(); } - public virtual void ScenarioCleanup() + public void ScenarioCleanup() { testRunner.CollectScenarioErrors(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Unlock unqueued targets 1 - Multiple targets to unlock")] - public virtual void UnlockUnqueuedTargets1_MultipleTargetsToUnlock() + public void UnlockUnqueuedTargets1_MultipleTargetsToUnlock() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unlock unqueued targets 1 - Multiple targets to unlock", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unlock unqueued targets 1 - Multiple targets to unlock", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 6 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table1.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "true"}); - table1.AddRow(new string[] { - "", - "00000002", - "Asteroid (Veldspar)", - "true"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table1.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "true"}); + table1.AddRow(new string[] { + "", + "00000002", + "Asteroid (Veldspar)", + "true"}); #line 7 testRunner.Given("I have entities", ((string)(null)), table1, "Given "); #line hidden - TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type"}); + TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type"}); #line 11 testRunner.And("I have queued targets", ((string)(null)), table2, "And "); +#line hidden #line 13 testRunner.When("I unlock unqueued targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 14 testRunner.Then("exactly \'1\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 15 testRunner.And("Unlock unqueued targets should return \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Unlock unqueued targets 2 - No targets to unlock")] - public virtual void UnlockUnqueuedTargets2_NoTargetsToUnlock() + public void UnlockUnqueuedTargets2_NoTargetsToUnlock() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unlock unqueued targets 2 - No targets to unlock", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unlock unqueued targets 2 - No targets to unlock", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 17 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); #line 18 testRunner.Given("I have entities", ((string)(null)), table3, "Given "); #line hidden - TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type"}); + TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type"}); #line 20 testRunner.And("I have queued targets", ((string)(null)), table4, "And "); +#line hidden #line 22 testRunner.When("I unlock unqueued targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 23 testRunner.Then("exactly \'0\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 24 testRunner.And("Unlock unqueued targets should return \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Unlock unqueued targets 3 - Queued targets shouldn\'t be unlocked")] - public virtual void UnlockUnqueuedTargets3_QueuedTargetsShouldnTBeUnlocked() + public void UnlockUnqueuedTargets3_QueuedTargetsShouldntBeUnlocked() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unlock unqueued targets 3 - Queued targets shouldn\'t be unlocked", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unlock unqueued targets 3 - Queued targets shouldn\'t be unlocked", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 26 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type"}); - table5.AddRow(new string[] { - "", - "00000001", - "Mine"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type"}); + table5.AddRow(new string[] { + "", + "00000001", + "Mine"}); #line 27 testRunner.Given("I have queued targets", ((string)(null)), table5, "Given "); #line hidden - TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table6.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "true"}); + TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table6.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "true"}); #line 30 testRunner.And("I have entities", ((string)(null)), table6, "And "); +#line hidden #line 33 testRunner.When("I unlock unqueued targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 34 testRunner.Then("exactly \'0\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 35 testRunner.And("Unlock unqueued targets should return \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Lock targets 1 - 1 entity, 1 queued, 1 type, max 1")] - public virtual void LockTargets1_1Entity1Queued1TypeMax1() + public void LockTargets1_1Entity1Queued1TypeMax1() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lock targets 1 - 1 entity, 1 queued, 1 type, max 1", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lock targets 1 - 1 entity, 1 queued, 1 type, max 1", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 37 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type"}); - table7.AddRow(new string[] { - "", - "00000001", - "Mine"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type"}); + table7.AddRow(new string[] { + "", + "00000001", + "Mine"}); #line 38 testRunner.Given("I have queued targets", ((string)(null)), table7, "Given "); #line hidden - TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table8.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "false"}); + TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table8.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "false"}); #line 41 testRunner.And("I have entities", ((string)(null)), table8, "And "); #line hidden - TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "IsActive", - "TargetID"}); + TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "IsActive", + "TargetID"}); #line 44 testRunner.And("I have modules", ((string)(null)), table9, "And "); +#line hidden #line 46 testRunner.And("my ship can lock \'1\' targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 48 testRunner.When("I process queued targets \'2\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 49 testRunner.Then("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 50 testRunner.And("exactly \'0\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Lock targets 2 - 2 entity, 2 queued, 1 type, max 2")] - public virtual void LockTargets2_2Entity2Queued1TypeMax2() + public void LockTargets2_2Entity2Queued1TypeMax2() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lock targets 2 - 2 entity, 2 queued, 1 type, max 2", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lock targets 2 - 2 entity, 2 queued, 1 type, max 2", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 52 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type"}); - table10.AddRow(new string[] { - "", - "00000001", - "Mine"}); - table10.AddRow(new string[] { - "", - "00000002", - "Mine"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type"}); + table10.AddRow(new string[] { + "", + "00000001", + "Mine"}); + table10.AddRow(new string[] { + "", + "00000002", + "Mine"}); #line 53 testRunner.Given("I have queued targets", ((string)(null)), table10, "Given "); #line hidden - TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table11.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "false"}); - table11.AddRow(new string[] { - "", - "00000002", - "Asteroid (Veldspar)", - "false"}); + TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table11.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "false"}); + table11.AddRow(new string[] { + "", + "00000002", + "Asteroid (Veldspar)", + "false"}); #line 57 testRunner.And("I have entities", ((string)(null)), table11, "And "); #line hidden - TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "IsActive", - "TargetID"}); + TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "IsActive", + "TargetID"}); #line 61 testRunner.And("I have modules", ((string)(null)), table12, "And "); +#line hidden #line 63 testRunner.And("my ship can lock \'2\' targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 65 testRunner.When("I process queued targets \'3\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 66 testRunner.Then("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 67 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 68 testRunner.And("exactly \'0\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Lock targets 3 - 2 entity, 2 queued, 2 type, max 2")] - public virtual void LockTargets3_2Entity2Queued2TypeMax2() + public void LockTargets3_2Entity2Queued2TypeMax2() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lock targets 3 - 2 entity, 2 queued, 2 type, max 2", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lock targets 3 - 2 entity, 2 queued, 2 type, max 2", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 70 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type"}); - table13.AddRow(new string[] { - "", - "00000001", - "Mine"}); - table13.AddRow(new string[] { - "", - "00000002", - "Kill"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type"}); + table13.AddRow(new string[] { + "", + "00000001", + "Mine"}); + table13.AddRow(new string[] { + "", + "00000002", + "Kill"}); #line 71 testRunner.Given("I have queued targets", ((string)(null)), table13, "Given "); #line hidden - TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table14.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "false"}); - table14.AddRow(new string[] { - "", - "00000002", - "Serpentis Spy", - "false"}); + TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table14.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "false"}); + table14.AddRow(new string[] { + "", + "00000002", + "Serpentis Spy", + "false"}); #line 75 testRunner.And("I have entities", ((string)(null)), table14, "And "); #line hidden - TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "IsActive", - "TargetID"}); + TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "IsActive", + "TargetID"}); #line 79 testRunner.And("I have modules", ((string)(null)), table15, "And "); +#line hidden #line 81 testRunner.And("my ship can lock \'2\' targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 83 testRunner.When("I process queued targets \'3\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 84 testRunner.Then("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 85 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 86 testRunner.And("exactly \'0\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Lock targets 3 - 4 entity, 4 queued, 2 type, max 3 - Should use more combat slots" + " in a combat mode")] - public virtual void LockTargets3_4Entity4Queued2TypeMax3_ShouldUseMoreCombatSlotsInACombatMode() + public void LockTargets3_4Entity4Queued2TypeMax3_ShouldUseMoreCombatSlotsInACombatMode() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Lock targets 3 - 4 entity, 4 queued, 2 type, max 3 - Should use more combat slots" + - " in a combat mode", ((string[])(null))); + " in a combat mode", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 88 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type", - "Priority"}); - table16.AddRow(new string[] { - "", - "00000001", - "Mine", - "1"}); - table16.AddRow(new string[] { - "", - "00000002", - "Kill", - "0"}); - table16.AddRow(new string[] { - "", - "00000003", - "Kill", - "0"}); - table16.AddRow(new string[] { - "", - "00000004", - "Mine", - "1"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type", + "Priority"}); + table16.AddRow(new string[] { + "", + "00000001", + "Mine", + "1"}); + table16.AddRow(new string[] { + "", + "00000002", + "Kill", + "0"}); + table16.AddRow(new string[] { + "", + "00000003", + "Kill", + "0"}); + table16.AddRow(new string[] { + "", + "00000004", + "Mine", + "1"}); #line 89 testRunner.Given("I have queued targets", ((string)(null)), table16, "Given "); #line hidden - TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table17.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "false"}); - table17.AddRow(new string[] { - "", - "00000002", - "Serpentis Spy", - "false"}); - table17.AddRow(new string[] { - "", - "00000003", - "Serpentis Watchman", - "false"}); - table17.AddRow(new string[] { - "", - "00000004", - "Asteroid (Veldspar)", - "false"}); + TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table17.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "false"}); + table17.AddRow(new string[] { + "", + "00000002", + "Serpentis Spy", + "false"}); + table17.AddRow(new string[] { + "", + "00000003", + "Serpentis Watchman", + "false"}); + table17.AddRow(new string[] { + "", + "00000004", + "Asteroid (Veldspar)", + "false"}); #line 95 testRunner.And("I have entities", ((string)(null)), table17, "And "); #line hidden - TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "IsActive", - "TargetID"}); + TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "IsActive", + "TargetID"}); #line 101 testRunner.And("I have modules", ((string)(null)), table18, "And "); +#line hidden #line 103 testRunner.And("whether or not I am in a non-combat mode is \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 104 testRunner.And("my ship can lock \'3\' targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 106 testRunner.When("I process queued targets \'5\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 107 testRunner.Then("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 108 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 109 testRunner.And("exactly \'0\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Change targets 1 - 5 entity, 5 queued, 2 type, max 4 - Should unlock an asteroid " + "in favor of an npc")] - public virtual void ChangeTargets1_5Entity5Queued2TypeMax4_ShouldUnlockAnAsteroidInFavorOfAnNpc() + public void ChangeTargets1_5Entity5Queued2TypeMax4_ShouldUnlockAnAsteroidInFavorOfAnNpc() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Change targets 1 - 5 entity, 5 queued, 2 type, max 4 - Should unlock an asteroid " + - "in favor of an npc", ((string[])(null))); + "in favor of an npc", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 111 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type", - "Priority"}); - table19.AddRow(new string[] { - "", - "00000001", - "Mine", - "1"}); - table19.AddRow(new string[] { - "", - "00000002", - "Mine", - "1"}); - table19.AddRow(new string[] { - "", - "00000003", - "Mine", - "1"}); - table19.AddRow(new string[] { - "", - "00000004", - "Mine", - "1"}); - table19.AddRow(new string[] { - "", - "00000005", - "Kill", - "0"}); - table19.AddRow(new string[] { - "", - "00000006", - "Kill", - "0"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type", + "Priority"}); + table19.AddRow(new string[] { + "", + "00000001", + "Mine", + "1"}); + table19.AddRow(new string[] { + "", + "00000002", + "Mine", + "1"}); + table19.AddRow(new string[] { + "", + "00000003", + "Mine", + "1"}); + table19.AddRow(new string[] { + "", + "00000004", + "Mine", + "1"}); + table19.AddRow(new string[] { + "", + "00000005", + "Kill", + "0"}); + table19.AddRow(new string[] { + "", + "00000006", + "Kill", + "0"}); #line 112 testRunner.Given("I have queued targets", ((string)(null)), table19, "Given "); #line hidden - TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table20.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "true"}); - table20.AddRow(new string[] { - "", - "00000002", - "Asteroid (Veldspar)", - "true"}); - table20.AddRow(new string[] { - "", - "00000003", - "Asteroid (Veldspar)", - "true"}); - table20.AddRow(new string[] { - "", - "00000004", - "Asteroid (Veldspar)", - "true"}); - table20.AddRow(new string[] { - "", - "00000005", - "Serpentis Spy", - "false"}); - table20.AddRow(new string[] { - "", - "00000006", - "Serpentis Watchman", - "false"}); + TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table20.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "true"}); + table20.AddRow(new string[] { + "", + "00000002", + "Asteroid (Veldspar)", + "true"}); + table20.AddRow(new string[] { + "", + "00000003", + "Asteroid (Veldspar)", + "true"}); + table20.AddRow(new string[] { + "", + "00000004", + "Asteroid (Veldspar)", + "true"}); + table20.AddRow(new string[] { + "", + "00000005", + "Serpentis Spy", + "false"}); + table20.AddRow(new string[] { + "", + "00000006", + "Serpentis Watchman", + "false"}); #line 120 testRunner.And("I have entities", ((string)(null)), table20, "And "); #line hidden - TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "IsActive", - "TargetID"}); + TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "IsActive", + "TargetID"}); #line 128 testRunner.And("I have modules", ((string)(null)), table21, "And "); +#line hidden #line 130 testRunner.And("whether or not I am in a non-combat mode is \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 131 testRunner.And("my ship can lock \'4\' targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 133 testRunner.When("I process queued targets \'10\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 134 testRunner.Then("exactly \'2\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 135 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 136 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Change targets 2 - 5 entity, 5 queued, 2 type, max 4 - Should unlock a kill targe" + "t in favor of an salvage target")] - public virtual void ChangeTargets2_5Entity5Queued2TypeMax4_ShouldUnlockAKillTargetInFavorOfAnSalvageTarget() + public void ChangeTargets2_5Entity5Queued2TypeMax4_ShouldUnlockAKillTargetInFavorOfAnSalvageTarget() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Change targets 2 - 5 entity, 5 queued, 2 type, max 4 - Should unlock a kill targe" + - "t in favor of an salvage target", ((string[])(null))); + "t in favor of an salvage target", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 138 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type", - "Priority"}); - table22.AddRow(new string[] { - "", - "00000001", - "Kill", - "1"}); - table22.AddRow(new string[] { - "", - "00000002", - "Kill", - "1"}); - table22.AddRow(new string[] { - "", - "00000003", - "Kill", - "1"}); - table22.AddRow(new string[] { - "", - "00000004", - "Kill", - "1"}); - table22.AddRow(new string[] { - "", - "00000005", - "LootSalvage", - "2"}); - table22.AddRow(new string[] { - "", - "00000006", - "LootSalvage", - "2"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type", + "Priority"}); + table22.AddRow(new string[] { + "", + "00000001", + "Kill", + "1"}); + table22.AddRow(new string[] { + "", + "00000002", + "Kill", + "1"}); + table22.AddRow(new string[] { + "", + "00000003", + "Kill", + "1"}); + table22.AddRow(new string[] { + "", + "00000004", + "Kill", + "1"}); + table22.AddRow(new string[] { + "", + "00000005", + "LootSalvage", + "2"}); + table22.AddRow(new string[] { + "", + "00000006", + "LootSalvage", + "2"}); #line 139 testRunner.Given("I have queued targets", ((string)(null)), table22, "Given "); #line hidden - TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table23.AddRow(new string[] { - "", - "00000001", - "Serpentis Spy", - "true"}); - table23.AddRow(new string[] { - "", - "00000002", - "Serpentis Spy", - "true"}); - table23.AddRow(new string[] { - "", - "00000003", - "Serpentis Watchman", - "true"}); - table23.AddRow(new string[] { - "", - "00000004", - "Serpentis Watchman", - "true"}); - table23.AddRow(new string[] { - "", - "00000005", - "Wreck (Serpentis Watchman)", - "false"}); - table23.AddRow(new string[] { - "", - "00000006", - "Cargo Container", - "false"}); + TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table23.AddRow(new string[] { + "", + "00000001", + "Serpentis Spy", + "true"}); + table23.AddRow(new string[] { + "", + "00000002", + "Serpentis Spy", + "true"}); + table23.AddRow(new string[] { + "", + "00000003", + "Serpentis Watchman", + "true"}); + table23.AddRow(new string[] { + "", + "00000004", + "Serpentis Watchman", + "true"}); + table23.AddRow(new string[] { + "", + "00000005", + "Wreck (Serpentis Watchman)", + "false"}); + table23.AddRow(new string[] { + "", + "00000006", + "Cargo Container", + "false"}); #line 147 testRunner.And("I have entities", ((string)(null)), table23, "And "); #line hidden - TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "IsActive", - "TargetID"}); + TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "IsActive", + "TargetID"}); #line 155 testRunner.And("I have modules", ((string)(null)), table24, "And "); +#line hidden #line 157 testRunner.And("whether or not I am in a non-combat mode is \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 158 testRunner.And("my ship can lock \'4\' targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 160 testRunner.When("I process queued targets \'10\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 161 testRunner.Then("exactly \'2\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 162 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 163 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Change targets 3 - 5 entity, 5 queued, 2 type, max 4 - Should")] - public virtual void ChangeTargets3_5Entity5Queued2TypeMax4_Should() + public void ChangeTargets3_5Entity5Queued2TypeMax4_Should() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Change targets 3 - 5 entity, 5 queued, 2 type, max 4 - Should", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Change targets 3 - 5 entity, 5 queued, 2 type, max 4 - Should", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 165 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Id", - "Type", - "Priority"}); - table25.AddRow(new string[] { - "", - "00000001", - "Mine", - "1"}); - table25.AddRow(new string[] { - "", - "00000002", - "Mine", - "1"}); - table25.AddRow(new string[] { - "", - "00000003", - "Mine", - "1"}); - table25.AddRow(new string[] { - "", - "00000004", - "Mine", - "1"}); - table25.AddRow(new string[] { - "", - "00000005", - "Kill", - "0"}); - table25.AddRow(new string[] { - "", - "00000006", - "Kill", - "0"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Id", + "Type", + "Priority"}); + table25.AddRow(new string[] { + "", + "00000001", + "Mine", + "1"}); + table25.AddRow(new string[] { + "", + "00000002", + "Mine", + "1"}); + table25.AddRow(new string[] { + "", + "00000003", + "Mine", + "1"}); + table25.AddRow(new string[] { + "", + "00000004", + "Mine", + "1"}); + table25.AddRow(new string[] { + "", + "00000005", + "Kill", + "0"}); + table25.AddRow(new string[] { + "", + "00000006", + "Kill", + "0"}); #line 166 testRunner.Given("I have queued targets", ((string)(null)), table25, "Given "); #line hidden - TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); - table26.AddRow(new string[] { - "", - "00000001", - "Asteroid (Scordite)", - "true"}); - table26.AddRow(new string[] { - "", - "00000002", - "Asteroid (Veldspar)", - "true"}); - table26.AddRow(new string[] { - "", - "00000003", - "Asteroid (Veldspar)", - "true"}); - table26.AddRow(new string[] { - "", - "00000004", - "Asteroid (Veldspar)", - "true"}); - table26.AddRow(new string[] { - "", - "00000005", - "Serpentis Spy", - "false"}); - table26.AddRow(new string[] { - "", - "00000006", - "Serpentis Watchman", - "false"}); + TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); + table26.AddRow(new string[] { + "", + "00000001", + "Asteroid (Scordite)", + "true"}); + table26.AddRow(new string[] { + "", + "00000002", + "Asteroid (Veldspar)", + "true"}); + table26.AddRow(new string[] { + "", + "00000003", + "Asteroid (Veldspar)", + "true"}); + table26.AddRow(new string[] { + "", + "00000004", + "Asteroid (Veldspar)", + "true"}); + table26.AddRow(new string[] { + "", + "00000005", + "Serpentis Spy", + "false"}); + table26.AddRow(new string[] { + "", + "00000006", + "Serpentis Watchman", + "false"}); #line 174 testRunner.And("I have entities", ((string)(null)), table26, "And "); #line hidden - TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "IsActive", - "TargetID"}); - table27.AddRow(new string[] { - "", - "00000001", - "true", - "00000001"}); - table27.AddRow(new string[] { - "", - "00000002", - "true", - "00000002"}); + TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "IsActive", + "TargetID"}); + table27.AddRow(new string[] { + "", + "00000001", + "true", + "00000001"}); + table27.AddRow(new string[] { + "", + "00000002", + "true", + "00000002"}); #line 182 testRunner.And("I have modules", ((string)(null)), table27, "And "); +#line hidden #line 186 testRunner.And("whether or not I am in a non-combat mode is \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 187 testRunner.And("my ship can lock \'4\' targets", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 189 testRunner.When("I process queued targets \'10\' times", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 190 testRunner.Then("exactly \'2\' locked target(s) should be unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 191 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 192 testRunner.And("target \'\' should have been locked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 193 testRunner.And("target \'\' should not have been unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 194 testRunner.And("target \'\' should not have been unlocked", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } } diff --git a/StealthBot.SpecFlow/ActionModules/TargetingSteps.cs b/StealthBot.SpecFlow/ActionModules/TargetingSteps.cs index c0bc236..5cae225 100644 --- a/StealthBot.SpecFlow/ActionModules/TargetingSteps.cs +++ b/StealthBot.SpecFlow/ActionModules/TargetingSteps.cs @@ -20,6 +20,11 @@ public class TargetingSteps : CommonSteps { // For additional details on SpecFlow step definitions see http://go.specflow.org/doc-stepdef + public TargetingSteps(CustomScenarioContext context, ScenarioContext scenarioContext) : base(context, scenarioContext) + { + // ... rest of the constructor code + } + [BeforeScenario("Targeting")] public void BeforeTargetingFeature() { @@ -162,72 +167,72 @@ public void ThenTargetShouldNotHaveBeenUnlocked(string entityRef) entityMock.Verify(em => em.UnlockTarget(), Times.Never()); } - #region ScenarioContext Objects + #region CustomScenarioContext Properties private bool WereTargetsUnlocked { - get { return GetFromScenarioContext("wereTargetsUnlocked"); } - set { SetInScenarioContext("wereTargetsUnlocked", value); } + get { return _context.WereTargetsUnlocked; } + set { _context.WereTargetsUnlocked = value; } } private int TimesUnlockTargetWasCalled { - get { return GetFromScenarioContext("timesUnlockTargetWasCalled"); } - set { SetInScenarioContext("timesUnlockTargetWasCalled", value); } + get { return _context.TimesUnlockTargetWasCalled; } + set { _context.TimesUnlockTargetWasCalled = value; } } private new Mock Logging { - get { return GetFromScenarioContext>("logging"); } - set { SetInScenarioContext("logging", value); } + get { return _context.Logging; } + set { _context.Logging = value; } } private Mock MaxRuntimeConfiguration { - get { return GetFromScenarioContext>("maxRuntimeConfiguration"); } - set { SetInScenarioContext("maxRuntimeConfiguration", value); } + get { return _context.MaxRuntimeConfiguration; } + set { _context.MaxRuntimeConfiguration = value; } } private Mock MeCache { - get { return GetFromScenarioContext>("meCache"); } - set { SetInScenarioContext("meCache", value); } + get { return _context.MeCache; } + set { _context.MeCache = value; } } private Mock Drones { - get { return GetFromScenarioContext>("drones"); } - set { SetInScenarioContext("drones", value); } + get { return _context.Drones; } + set { _context.Drones = value; } } private Mock Alerts { - get { return GetFromScenarioContext>("alerts"); } - set { SetInScenarioContext("alerts", value); } + get { return _context.Alerts; } + set { _context.Alerts = value; } } private Mock ModuleManager { - get { return GetFromScenarioContext>("moduleManager"); } - set { SetInScenarioContext("moduleManager", value); } + get { return _context.ModuleManager; } + set { _context.ModuleManager = value; } } private Mock TargetQueue { - get { return GetFromScenarioContext>("targetQueue"); } - set { SetInScenarioContext("targetQueue", value); } + get { return _context.TargetQueue; } + set { _context.TargetQueue = value; } } private Mock Movement { - get { return GetFromScenarioContext>("movement"); } - set { SetInScenarioContext("movement", value); } + get { return _context.Movement; } + set { _context.Movement = value; } } private ITargeting Targeting { - get { return GetFromScenarioContext("targeting"); } - set { SetInScenarioContext("targeting", value); } + get { return _context.Targeting; } + set { _context.Targeting = value; } } #endregion } diff --git a/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionSteps.cs b/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionSteps.cs index e161b31..f8aba4b 100644 --- a/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionSteps.cs +++ b/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionSteps.cs @@ -19,6 +19,11 @@ public class DropOffToJetissonContainerActionSteps : CommonSteps { private IPartialBehaviorBase _dropOffToJetissonContainerAction; + public DropOffToJetissonContainerActionSteps(CustomScenarioContext context, ScenarioContext scenarioContext) : base(context, scenarioContext) + { + // You can add any additional initialization here if needed + } + [BeforeScenario("@DropOffToJetissonContainerActionTest")] public void DropoffToJetissonContanierActionTestBeforeScenario() { @@ -84,14 +89,14 @@ public void ThenItemShouldNotHaveBeenJettisoned(string itemRef) private Mock InventoryProvider { - get { return GetFromScenarioContext>("inventoryProvider"); } - set { SetInScenarioContext("inventoryProvider", value); } + get { return _context.InventoryProvider; } + set { _context.InventoryProvider = value; } } private Mock JettisonContainer { - get { return GetFromScenarioContext>("jettisonContainer"); } - set { SetInScenarioContext("jettisonContainer", value); } + get { return _context.JettisonContainer; } + set { _context.JettisonContainer = value; } } } } diff --git a/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionTest.feature.cs b/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionTest.feature.cs index bde7531..1a8c7bf 100644 --- a/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionTest.feature.cs +++ b/StealthBot.SpecFlow/Actions/DropOffToJetissonContainerActionTest.feature.cs @@ -1,9 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by SpecFlow (http://www.specflow.org/). -// SpecFlow Version:1.9.0.77 -// SpecFlow Generator Version:1.9.0.0 -// Runtime Version:4.0.30319.18046 +// This code was generated by SpecFlow (https://www.specflow.org/). +// SpecFlow Version:3.9.0.0 +// SpecFlow Generator Version:3.9.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -14,9 +13,11 @@ namespace StealthBot.SpecFlow.Actions { using TechTalk.SpecFlow; + using System; + using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.9.0.77")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.9.0.0")] [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [NUnit.Framework.TestFixtureAttribute()] [NUnit.Framework.DescriptionAttribute("DropOffToJetissonContainerActionTest")] @@ -24,21 +25,23 @@ namespace StealthBot.SpecFlow.Actions public partial class DropOffToJetissonContainerActionTestFeature { - private static TechTalk.SpecFlow.ITestRunner testRunner; + private TechTalk.SpecFlow.ITestRunner testRunner; + + private static string[] featureTags = new string[] { + "DropOffToJetissonContainerActionTest"}; #line 1 "DropOffToJetissonContainerActionTest.feature" #line hidden - [NUnit.Framework.TestFixtureSetUpAttribute()] + [NUnit.Framework.OneTimeSetUpAttribute()] public virtual void FeatureSetup() { testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner(); - TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "DropOffToJetissonContainerActionTest", "As a miner\r\nI want to unload ore to a jetisson container", ProgrammingLanguage.CSharp, new string[] { - "DropOffToJetissonContainerActionTest"}); + TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Actions", "DropOffToJetissonContainerActionTest", "\tAs a miner\r\n\tI want to unload ore to a jetisson container", ProgrammingLanguage.CSharp, featureTags); testRunner.OnFeatureStart(featureInfo); } - [NUnit.Framework.TestFixtureTearDownAttribute()] + [NUnit.Framework.OneTimeTearDownAttribute()] public virtual void FeatureTearDown() { testRunner.OnFeatureEnd(); @@ -46,22 +49,28 @@ public virtual void FeatureTearDown() } [NUnit.Framework.SetUpAttribute()] - public virtual void TestInitialize() + public void TestInitialize() { } [NUnit.Framework.TearDownAttribute()] - public virtual void ScenarioTearDown() + public void TestTearDown() { testRunner.OnScenarioEnd(); } - public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) + { + testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(NUnit.Framework.TestContext.CurrentContext); + } + + public void ScenarioStart() { - testRunner.OnScenarioStart(scenarioInfo); + testRunner.OnScenarioStart(); } - public virtual void ScenarioCleanup() + public void ScenarioCleanup() { testRunner.CollectScenarioErrors(); } @@ -69,167 +78,244 @@ public virtual void ScenarioCleanup() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("1 a - When no jetcan exists / is active, and I have ore in my ore hold, create a " + "new one")] - public virtual void _1A_WhenNoJetcanExistsIsActiveAndIHaveOreInMyOreHoldCreateANewOne() + public void _1A_WhenNoJetcanExistsIsActiveAndIHaveOreInMyOreHoldCreateANewOne() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1 a - When no jetcan exists / is active, and I have ore in my ore hold, create a " + - "new one", ((string[])(null))); + "new one", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 6 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Name"}); - table1.AddRow(new string[] { - "", - "Scordite"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Name"}); + table28.AddRow(new string[] { + "", + "Scordite"}); #line 7 -testRunner.Given("I have ore hold items", ((string)(null)), table1, "Given "); +testRunner.Given("I have ore hold items", ((string)(null)), table28, "Given "); #line hidden - TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); + TechTalk.SpecFlow.Table table29 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); #line 10 -testRunner.And("I have entities", ((string)(null)), table2, "And "); +testRunner.And("I have entities", ((string)(null)), table29, "And "); +#line hidden #line 12 testRunner.When("I process jetisson container dropoff (\'1\' time(s))", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 13 testRunner.Then("item \'\' should have been jetissoned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("1 b - When no jetcan exists / is active, and I have ore in my cargo hold, create " + "a new one")] - public virtual void _1B_WhenNoJetcanExistsIsActiveAndIHaveOreInMyCargoHoldCreateANewOne() + public void _1B_WhenNoJetcanExistsIsActiveAndIHaveOreInMyCargoHoldCreateANewOne() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1 b - When no jetcan exists / is active, and I have ore in my cargo hold, create " + - "a new one", ((string[])(null))); + "a new one", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 15 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Name", - "CategoryID"}); - table3.AddRow(new string[] { - "", - "Scordite", - "25"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table30 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Name", + "CategoryID"}); + table30.AddRow(new string[] { + "", + "Scordite", + "25"}); #line 16 -testRunner.Given("I have cargo hold items", ((string)(null)), table3, "Given "); +testRunner.Given("I have cargo hold items", ((string)(null)), table30, "Given "); #line hidden - TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); + TechTalk.SpecFlow.Table table31 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); #line 19 -testRunner.And("I have entities", ((string)(null)), table4, "And "); +testRunner.And("I have entities", ((string)(null)), table31, "And "); +#line hidden #line 21 testRunner.When("I process jetisson container dropoff (\'1\' time(s))", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 22 testRunner.Then("item \'\' should have been jetissoned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("1 c - When no jetcan exists / is active, and I have ore in my ore hold and cargo," + " create a new one from the ore hold item")] - public virtual void _1C_WhenNoJetcanExistsIsActiveAndIHaveOreInMyOreHoldAndCargoCreateANewOneFromTheOreHoldItem() + public void _1C_WhenNoJetcanExistsIsActiveAndIHaveOreInMyOreHoldAndCargoCreateANewOneFromTheOreHoldItem() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1 c - When no jetcan exists / is active, and I have ore in my ore hold and cargo," + - " create a new one from the ore hold item", ((string[])(null))); + " create a new one from the ore hold item", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 24 -this.ScenarioSetup(scenarioInfo); -#line hidden - TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Name", - "CategoryID"}); - table5.AddRow(new string[] { - "", - "Scordite", - "25"}); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + TechTalk.SpecFlow.Table table32 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Name", + "CategoryID"}); + table32.AddRow(new string[] { + "", + "Scordite", + "25"}); #line 25 -testRunner.Given("I have cargo hold items", ((string)(null)), table5, "Given "); -#line hidden - TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "Name"}); - table6.AddRow(new string[] { - "", - "Veldspar"}); +testRunner.Given("I have cargo hold items", ((string)(null)), table32, "Given "); +#line hidden + TechTalk.SpecFlow.Table table33 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "Name"}); + table33.AddRow(new string[] { + "", + "Veldspar"}); #line 28 -testRunner.And("I have ore hold items", ((string)(null)), table6, "And "); +testRunner.And("I have ore hold items", ((string)(null)), table33, "And "); #line hidden - TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { - "!this", - "ID", - "Name", - "IsLockedTarget"}); + TechTalk.SpecFlow.Table table34 = new TechTalk.SpecFlow.Table(new string[] { + "!this", + "ID", + "Name", + "IsLockedTarget"}); #line 31 -testRunner.And("I have entities", ((string)(null)), table7, "And "); +testRunner.And("I have entities", ((string)(null)), table34, "And "); +#line hidden #line 33 testRunner.When("I process jetisson container dropoff (\'1\' time(s))", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 34 testRunner.Then("item \'\' should have been jetissoned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 35 testRunner.And("item \'\' should not have been jettisoned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("2 a - When no jetcan was active, and I had no existing cans, and I jettison an it" + "em, I should detect the new can and make it active")] - public virtual void _2A_WhenNoJetcanWasActiveAndIHadNoExistingCansAndIJettisonAnItemIShouldDetectTheNewCanAndMakeItActive() + public void _2A_WhenNoJetcanWasActiveAndIHadNoExistingCansAndIJettisonAnItemIShouldDetectTheNewCanAndMakeItActive() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("2 a - When no jetcan was active, and I had no existing cans, and I jettison an it" + - "em, I should detect the new can and make it active", ((string[])(null))); + "em, I should detect the new can and make it active", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 37 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); #line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("2 b - When no jetcan was active, and I had existing nearby jetcans, and I jettiso" + "n an item, I should detect the new can and make it active")] - public virtual void _2B_WhenNoJetcanWasActiveAndIHadExistingNearbyJetcansAndIJettisonAnItemIShouldDetectTheNewCanAndMakeItActive() + public void _2B_WhenNoJetcanWasActiveAndIHadExistingNearbyJetcansAndIJettisonAnItemIShouldDetectTheNewCanAndMakeItActive() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("2 b - When no jetcan was active, and I had existing nearby jetcans, and I jettiso" + - "n an item, I should detect the new can and make it active", ((string[])(null))); + "n an item, I should detect the new can and make it active", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 39 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); #line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("3 - Only try to create a new jetisson container after the 3-minute cooldown")] - public virtual void _3_OnlyTryToCreateANewJetissonContainerAfterThe3_MinuteCooldown() + public void _3_OnlyTryToCreateANewJetissonContainerAfterThe3_MinuteCooldown() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("3 - Only try to create a new jetisson container after the 3-minute cooldown", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("3 - Only try to create a new jetisson container after the 3-minute cooldown", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 41 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); #line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("4 - When the active jetcan is nearly full, it should be considered full and marke" + "d for pickup")] - public virtual void _4_WhenTheActiveJetcanIsNearlyFullItShouldBeConsideredFullAndMarkedForPickup() + public void _4_WhenTheActiveJetcanIsNearlyFullItShouldBeConsideredFullAndMarkedForPickup() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("4 - When the active jetcan is nearly full, it should be considered full and marke" + - "d for pickup", ((string[])(null))); + "d for pickup", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 43 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); #line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + } this.ScenarioCleanup(); } @@ -237,14 +323,24 @@ public virtual void _4_WhenTheActiveJetcanIsNearlyFullItShouldBeConsideredFullAn [NUnit.Framework.DescriptionAttribute("5 - When no jetcan exists / is active, and I create one from either source, and j" + "etisson a full can, it should finish the dropoff cycle renamed and pickup reques" + "ted")] - public virtual void _5_WhenNoJetcanExistsIsActiveAndICreateOneFromEitherSourceAndJetissonAFullCanItShouldFinishTheDropoffCycleRenamedAndPickupRequested() + public void _5_WhenNoJetcanExistsIsActiveAndICreateOneFromEitherSourceAndJetissonAFullCanItShouldFinishTheDropoffCycleRenamedAndPickupRequested() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("5 - When no jetcan exists / is active, and I create one from either source, and j" + "etisson a full can, it should finish the dropoff cycle renamed and pickup reques" + - "ted", ((string[])(null))); + "ted", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 45 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); #line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); + } this.ScenarioCleanup(); } } diff --git a/StealthBot.SpecFlow/App.config b/StealthBot.SpecFlow/App.config index f592fcc..0925110 100644 --- a/StealthBot.SpecFlow/App.config +++ b/StealthBot.SpecFlow/App.config @@ -1,9 +1,63 @@  - -
- - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/StealthBot.SpecFlow/CommonSteps.cs b/StealthBot.SpecFlow/CommonSteps.cs index a6e25ed..9969f99 100644 --- a/StealthBot.SpecFlow/CommonSteps.cs +++ b/StealthBot.SpecFlow/CommonSteps.cs @@ -14,30 +14,38 @@ namespace StealthBot.SpecFlow { + [Binding] public class CommonSteps { + protected readonly CustomScenarioContext _context; + private readonly ScenarioContext _scenarioContext; + public CommonSteps(CustomScenarioContext context, ScenarioContext scenarioContext) + { + _context = context; + _scenarioContext = scenarioContext; + } protected void Initialize() { - Ship = new Mock(); - EntityProvider = new Mock(); - Logging = new Mock(); + _context.Ship = new Mock(); + _context.EntityProvider = new Mock(); + _context.Logging = new Mock(); } #region Scenario Context protected T GetFromScenarioContext(string key) { - return (T) ScenarioContext.Current[key]; + return (T)_scenarioContext[key]; } protected void SetInScenarioContext(string key, T obj) { - if (!ScenarioContext.Current.ContainsKey(key)) + if (!_scenarioContext.ContainsKey(key)) { - ScenarioContext.Current.Add(key, obj); + _scenarioContext.Add(key, obj); } else { - ScenarioContext.Current[key] = obj; + _scenarioContext[key] = obj; } } diff --git a/StealthBot.SpecFlow/CustomScenarioContext.cs b/StealthBot.SpecFlow/CustomScenarioContext.cs new file mode 100644 index 0000000..ca85bba --- /dev/null +++ b/StealthBot.SpecFlow/CustomScenarioContext.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using EVE.ISXEVE.Interfaces; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Moq; +using SpecAid; +using StealthBot.Core; +using StealthBot.Core.Config; +using StealthBot.Core.Interfaces; +using TechTalk.SpecFlow; +using IModule = EVE.ISXEVE.Interfaces.IModule; +using IShip = StealthBot.Core.IShip; + +namespace StealthBot.SpecFlow +{ + public class CustomScenarioContext + { + public IEnumerable> EntityMocks { get; set; } + public IEnumerable> ModuleMocks { get; set; } + public Mock Ship { get; set; } + public Mock EntityProvider { get; set; } + public Mock Logging { get; set; } + public Mock IsxeveProvider { get; set; } + public Mock Eve { get; set; } + // Add other properties as needed + public bool WereTargetsUnlocked { get; set; } + public int TimesUnlockTargetWasCalled { get; set; } + public Mock MaxRuntimeConfiguration { get; set; } + public Mock MeCache { get; set; } + public Mock Drones { get; set; } + public Mock Alerts { get; set; } + public Mock ModuleManager { get; set; } + public Mock TargetQueue { get; set; } + public Mock Movement { get; set; } + public ITargeting Targeting { get; set; } + + public Mock InventoryProvider { get; set; } + public Mock JettisonContainer { get; set; } + } +} diff --git a/StealthBot.SpecFlow/Modules/Safespots.feature.cs b/StealthBot.SpecFlow/Modules/Safespots.feature.cs index a221b08..ee626d2 100644 --- a/StealthBot.SpecFlow/Modules/Safespots.feature.cs +++ b/StealthBot.SpecFlow/Modules/Safespots.feature.cs @@ -1,9 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by SpecFlow (http://www.specflow.org/). -// SpecFlow Version:1.9.0.77 -// SpecFlow Generator Version:1.9.0.0 -// Runtime Version:4.0.30319.34003 +// This code was generated by SpecFlow (https://www.specflow.org/). +// SpecFlow Version:3.9.0.0 +// SpecFlow Generator Version:3.9.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -14,9 +13,11 @@ namespace StealthBot.SpecFlow.Modules { using TechTalk.SpecFlow; + using System; + using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.9.0.77")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.9.0.0")] [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [NUnit.Framework.TestFixtureAttribute()] [NUnit.Framework.DescriptionAttribute("Safespots")] @@ -24,22 +25,24 @@ namespace StealthBot.SpecFlow.Modules public partial class SafespotsFeature { - private static TechTalk.SpecFlow.ITestRunner testRunner; + private TechTalk.SpecFlow.ITestRunner testRunner; + + private static string[] featureTags = new string[] { + "Safespots"}; #line 1 "Safespots.feature" #line hidden - [NUnit.Framework.TestFixtureSetUpAttribute()] + [NUnit.Framework.OneTimeSetUpAttribute()] public virtual void FeatureSetup() { testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner(); - TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Safespots", "In order to intelligently flee to safety\r\nAs the bot\r\nI want to determine if I sh" + - "ould flee and where to go", ProgrammingLanguage.CSharp, new string[] { - "Safespots"}); + TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Modules", "Safespots", "In order to intelligently flee to safety\r\nAs the bot\r\nI want to determine if I sh" + + "ould flee and where to go", ProgrammingLanguage.CSharp, featureTags); testRunner.OnFeatureStart(featureInfo); } - [NUnit.Framework.TestFixtureTearDownAttribute()] + [NUnit.Framework.OneTimeTearDownAttribute()] public virtual void FeatureTearDown() { testRunner.OnFeatureEnd(); @@ -47,22 +50,28 @@ public virtual void FeatureTearDown() } [NUnit.Framework.SetUpAttribute()] - public virtual void TestInitialize() + public void TestInitialize() { } [NUnit.Framework.TearDownAttribute()] - public virtual void ScenarioTearDown() + public void TestTearDown() { testRunner.OnScenarioEnd(); } - public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) { - testRunner.OnScenarioStart(scenarioInfo); + testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(NUnit.Framework.TestContext.CurrentContext); } - public virtual void ScenarioCleanup() + public void ScenarioStart() + { + testRunner.OnScenarioStart(); + } + + public void ScenarioCleanup() { testRunner.CollectScenarioErrors(); } @@ -71,1121 +80,1438 @@ public virtual void FeatureBackground() { #line 7 #line hidden - TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { + TechTalk.SpecFlow.Table table35 = new TechTalk.SpecFlow.Table(new string[] { "!this", "TypeID", "Type", "GroupID", "Group"}); - table1.AddRow(new string[] { + table35.AddRow(new string[] { "<>", "11370", "Prototype Cloaking Device I", "330", "Cloaking Device"}); #line 8 -testRunner.Given("Items exist", ((string)(null)), table1, "Given "); +testRunner.Given("Items exist", ((string)(null)), table35, "Given "); #line hidden } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In Station")] - public virtual void AmISafe_InStation() + public void AmISafe_InStation() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In Station", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In Station", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 12 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 13 testRunner.Given("I am in a station", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 14 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 15 testRunner.Then("the result should be \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In space, within tower shields of any tower")] - public virtual void AmISafe_InSpaceWithinTowerShieldsOfAnyTower() + public void AmISafe_InSpaceWithinTowerShieldsOfAnyTower() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, within tower shields of any tower", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, within tower shields of any tower", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 17 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 18 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden - TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { - "Name", - "X", - "Y", - "Z", - "TypeID", - "Distance", - "GroupID"}); - table2.AddRow(new string[] { - "Cylons Were Here", - "1", - "1", - "1", - "27786", - "29999", - "365"}); + TechTalk.SpecFlow.Table table36 = new TechTalk.SpecFlow.Table(new string[] { + "Name", + "X", + "Y", + "Z", + "TypeID", + "Distance", + "GroupID"}); + table36.AddRow(new string[] { + "Cylons Were Here", + "1", + "1", + "1", + "27786", + "29999", + "365"}); #line 19 -testRunner.And("I have entities", ((string)(null)), table2, "And "); +testRunner.And("I have entities", ((string)(null)), table36, "And "); #line hidden - TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { - "TypeID", - "Type", - "ShieldRadius"}); - table3.AddRow(new string[] { - "27786", - "True Sansha Control Tower", - "30000"}); + TechTalk.SpecFlow.Table table37 = new TechTalk.SpecFlow.Table(new string[] { + "TypeID", + "Type", + "ShieldRadius"}); + table37.AddRow(new string[] { + "27786", + "True Sansha Control Tower", + "30000"}); #line 23 -testRunner.And("I have item info", ((string)(null)), table3, "And "); +testRunner.And("I have item info", ((string)(null)), table37, "And "); +#line hidden #line 26 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 27 testRunner.Then("the result should be \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In Space, within warp range of a \"safe\" bookmark, local is safe")] - public virtual void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkLocalIsSafe() + public void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkLocalIsSafe() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In Space, within warp range of a \"safe\" bookmark, local is safe", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In Space, within warp range of a \"safe\" bookmark, local is safe", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 29 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 30 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 31 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 32 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); - table4.AddRow(new string[] { - "safe: bookmark", - "0", - "0", - "0", - "1"}); + TechTalk.SpecFlow.Table table38 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); + table38.AddRow(new string[] { + "safe: bookmark", + "0", + "0", + "0", + "1"}); #line 33 -testRunner.And("I have bookmarks", ((string)(null)), table4, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table38, "And "); +#line hidden #line 37 testRunner.And("I am at point \'0\',\'0\',\'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 38 testRunner.And("local is safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 39 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 40 testRunner.Then("the result should be \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In Space, within warp range of a \"safe\" bookmark, local is not safe b" + "ut I have a cloak and can cloak")] - public virtual void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkLocalIsNotSafeButIHaveACloakAndCanCloak() + public void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkLocalIsNotSafeButIHaveACloakAndCanCloak() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In Space, within warp range of a \"safe\" bookmark, local is not safe b" + - "ut I have a cloak and can cloak", ((string[])(null))); + "ut I have a cloak and can cloak", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 42 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 43 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 44 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 45 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); - table5.AddRow(new string[] { - "safe: bookmark", - "0", - "0", - "0", - "1"}); + TechTalk.SpecFlow.Table table39 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); + table39.AddRow(new string[] { + "safe: bookmark", + "0", + "0", + "0", + "1"}); #line 46 -testRunner.And("I have bookmarks", ((string)(null)), table5, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table39, "And "); +#line hidden #line 50 testRunner.And("I am at point \'0\',\'0\',\'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 51 testRunner.And("local is not safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "ToItem"}); - table6.AddRow(new string[] { - "00000001", - "<>"}); + TechTalk.SpecFlow.Table table40 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "ToItem"}); + table40.AddRow(new string[] { + "00000001", + "<>"}); #line 52 -testRunner.And("I have cloaking device modules", ((string)(null)), table6, "And "); +testRunner.And("I have cloaking device modules", ((string)(null)), table40, "And "); #line hidden - TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "IsTargetingMe"}); + TechTalk.SpecFlow.Table table41 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "IsTargetingMe"}); #line 55 -testRunner.And("I have entities", ((string)(null)), table7, "And "); +testRunner.And("I have entities", ((string)(null)), table41, "And "); +#line hidden #line 57 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 58 testRunner.Then("the result should be \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In Space, within warp range of a \"safe\" bookmark, local is not safe b" + "ut I have a cloak and can\'t cloak")] - public virtual void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkLocalIsNotSafeButIHaveACloakAndCanTCloak() + public void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkLocalIsNotSafeButIHaveACloakAndCantCloak() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In Space, within warp range of a \"safe\" bookmark, local is not safe b" + - "ut I have a cloak and can\'t cloak", ((string[])(null))); + "ut I have a cloak and can\'t cloak", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 60 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 61 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 62 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 63 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table8.AddRow(new string[] { - "1", - "Joe Jackass", - "0", - "0", - "0", - "444", - "150000", - "true"}); + TechTalk.SpecFlow.Table table42 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table42.AddRow(new string[] { + "1", + "Joe Jackass", + "0", + "0", + "0", + "444", + "150000", + "true"}); #line 64 -testRunner.And("I have entities", ((string)(null)), table8, "And "); -#line hidden - TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); - table9.AddRow(new string[] { - "safe: bookmark", - "0", - "0", - "0", - "1"}); +testRunner.And("I have entities", ((string)(null)), table42, "And "); +#line hidden + TechTalk.SpecFlow.Table table43 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); + table43.AddRow(new string[] { + "safe: bookmark", + "0", + "0", + "0", + "1"}); #line 67 -testRunner.And("I have bookmarks", ((string)(null)), table9, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table43, "And "); +#line hidden #line 71 testRunner.And("I am at point \'0\',\'0\',\'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 72 testRunner.And("local is not safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "ToItem"}); - table10.AddRow(new string[] { - "00000001", - "<>"}); + TechTalk.SpecFlow.Table table44 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "ToItem"}); + table44.AddRow(new string[] { + "00000001", + "<>"}); #line 73 -testRunner.And("I have cloaking device modules", ((string)(null)), table10, "And "); +testRunner.And("I have cloaking device modules", ((string)(null)), table44, "And "); +#line hidden #line 76 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 77 testRunner.Then("the result should be \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In Space, within warp range of a \"safe\" bookmark, bookmark in differe" + "nt system")] - public virtual void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkBookmarkInDifferentSystem() + public void AmISafe_InSpaceWithinWarpRangeOfASafeBookmarkBookmarkInDifferentSystem() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In Space, within warp range of a \"safe\" bookmark, bookmark in differe" + - "nt system", ((string[])(null))); + "nt system", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 79 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 80 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 81 testRunner.And("I am in solarsystem ID \'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 82 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); - table11.AddRow(new string[] { - "safe: bookmark", - "0", - "0", - "0", - "1"}); + TechTalk.SpecFlow.Table table45 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); + table45.AddRow(new string[] { + "safe: bookmark", + "0", + "0", + "0", + "1"}); #line 83 -testRunner.And("I have bookmarks", ((string)(null)), table11, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table45, "And "); +#line hidden #line 87 testRunner.And("I am at point \'0\',\'0\',\'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 88 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 89 testRunner.Then("the result should be \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In space, no \"safe\" bookmarks, within warp-in range of a planet, loca" + "l is safe")] - public virtual void AmISafe_InSpaceNoSafeBookmarksWithinWarp_InRangeOfAPlanetLocalIsSafe() + public void AmISafe_InSpaceNoSafeBookmarksWithinWarp_InRangeOfAPlanetLocalIsSafe() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, no \"safe\" bookmarks, within warp-in range of a planet, loca" + - "l is safe", ((string[])(null))); + "l is safe", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 91 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 92 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden - TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance"}); - table12.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "100000000000"}); + TechTalk.SpecFlow.Table table46 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance"}); + table46.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "100000000000"}); #line 94 -testRunner.And("I have entities", ((string)(null)), table12, "And "); +testRunner.And("I have entities", ((string)(null)), table46, "And "); +#line hidden #line 98 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); + TechTalk.SpecFlow.Table table47 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); #line 99 -testRunner.And("I have bookmarks", ((string)(null)), table13, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table47, "And "); +#line hidden #line 101 testRunner.And("local is safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 102 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 103 testRunner.Then("the result should be \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In space, no \"safe\" bookmarks, within warp-in range of a planet, loca" + "l is not safe but I have a cloak and can cloak")] - public virtual void AmISafe_InSpaceNoSafeBookmarksWithinWarp_InRangeOfAPlanetLocalIsNotSafeButIHaveACloakAndCanCloak() + public void AmISafe_InSpaceNoSafeBookmarksWithinWarp_InRangeOfAPlanetLocalIsNotSafeButIHaveACloakAndCanCloak() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, no \"safe\" bookmarks, within warp-in range of a planet, loca" + - "l is not safe but I have a cloak and can cloak", ((string[])(null))); + "l is not safe but I have a cloak and can cloak", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 105 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 106 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden - TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table14.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "100000000000", - "false"}); + TechTalk.SpecFlow.Table table48 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table48.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "100000000000", + "false"}); #line 108 -testRunner.And("I have entities", ((string)(null)), table14, "And "); +testRunner.And("I have entities", ((string)(null)), table48, "And "); +#line hidden #line 112 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); + TechTalk.SpecFlow.Table table49 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); #line 113 -testRunner.And("I have bookmarks", ((string)(null)), table15, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table49, "And "); +#line hidden #line 115 testRunner.And("local is not safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "ToItem"}); - table16.AddRow(new string[] { - "00000001", - "<>"}); + TechTalk.SpecFlow.Table table50 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "ToItem"}); + table50.AddRow(new string[] { + "00000001", + "<>"}); #line 116 -testRunner.And("I have cloaking device modules", ((string)(null)), table16, "And "); +testRunner.And("I have cloaking device modules", ((string)(null)), table50, "And "); +#line hidden #line 119 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 120 testRunner.Then("the result should be \'true\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In space, no \"safe\" bookmarks, within warp-in range of a planet, loca" + "l is not safe but I have a cloak and can\'t cloak")] - public virtual void AmISafe_InSpaceNoSafeBookmarksWithinWarp_InRangeOfAPlanetLocalIsNotSafeButIHaveACloakAndCanTCloak() + public void AmISafe_InSpaceNoSafeBookmarksWithinWarp_InRangeOfAPlanetLocalIsNotSafeButIHaveACloakAndCantCloak() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, no \"safe\" bookmarks, within warp-in range of a planet, loca" + - "l is not safe but I have a cloak and can\'t cloak", ((string[])(null))); + "l is not safe but I have a cloak and can\'t cloak", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 122 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 123 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden - TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table17.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "100000000000", - "false"}); - table17.AddRow(new string[] { - "2", - "Joe Jackass", - "0", - "0", - "0", - "444", - "150000", - "true"}); + TechTalk.SpecFlow.Table table51 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table51.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "100000000000", + "false"}); + table51.AddRow(new string[] { + "2", + "Joe Jackass", + "0", + "0", + "0", + "444", + "150000", + "true"}); #line 125 -testRunner.And("I have entities", ((string)(null)), table17, "And "); +testRunner.And("I have entities", ((string)(null)), table51, "And "); +#line hidden #line 130 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); + TechTalk.SpecFlow.Table table52 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); #line 131 -testRunner.And("I have bookmarks", ((string)(null)), table18, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table52, "And "); +#line hidden #line 133 testRunner.And("local is not safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "ToItem"}); - table19.AddRow(new string[] { - "00000001", - "<>"}); + TechTalk.SpecFlow.Table table53 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "ToItem"}); + table53.AddRow(new string[] { + "00000001", + "<>"}); #line 134 -testRunner.And("I have cloaking device modules", ((string)(null)), table19, "And "); +testRunner.And("I have cloaking device modules", ((string)(null)), table53, "And "); +#line hidden #line 137 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 138 testRunner.Then("the result should be \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - Negative test - If we\'re not explicitly at a safespot, we shouldn\'t b" + "e considered at one")] - public virtual void AmISafe_NegativeTest_IfWeReNotExplicitlyAtASafespotWeShouldnTBeConsideredAtOne() + public void AmISafe_NegativeTest_IfWereNotExplicitlyAtASafespotWeShouldntBeConsideredAtOne() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - Negative test - If we\'re not explicitly at a safespot, we shouldn\'t b" + - "e considered at one", ((string[])(null))); + "e considered at one", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 140 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 141 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 142 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); + TechTalk.SpecFlow.Table table54 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); #line 143 -testRunner.And("I have bookmarks", ((string)(null)), table20, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table54, "And "); +#line hidden #line 145 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 146 testRunner.Then("the result should be \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In space, safe bookmarks, within warp-in range of a planet")] - public virtual void AmISafe_InSpaceSafeBookmarksWithinWarp_InRangeOfAPlanet() + public void AmISafe_InSpaceSafeBookmarksWithinWarp_InRangeOfAPlanet() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, safe bookmarks, within warp-in range of a planet", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, safe bookmarks, within warp-in range of a planet", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 148 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 149 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden - TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table21.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "100000000000", - "false"}); + TechTalk.SpecFlow.Table table55 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table55.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "100000000000", + "false"}); #line 151 -testRunner.And("I have entities", ((string)(null)), table21, "And "); +testRunner.And("I have entities", ((string)(null)), table55, "And "); +#line hidden #line 155 testRunner.And("I am at point \'0\',\'0\',\'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 156 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 157 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 158 testRunner.And("local is safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); - table22.AddRow(new string[] { - "safe: bookmark", - "146546", - "-64343684", - "4646", - "1"}); + TechTalk.SpecFlow.Table table56 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); + table56.AddRow(new string[] { + "safe: bookmark", + "146546", + "-64343684", + "4646", + "1"}); #line 159 -testRunner.And("I have bookmarks", ((string)(null)), table22, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table56, "And "); +#line hidden #line 162 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 163 testRunner.Then("the result should be \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Am I safe - In space, no safe bookmarks, stations present, within warp-in range o" + "f a planet")] - public virtual void AmISafe_InSpaceNoSafeBookmarksStationsPresentWithinWarp_InRangeOfAPlanet() + public void AmISafe_InSpaceNoSafeBookmarksStationsPresentWithinWarp_InRangeOfAPlanet() { + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Am I safe - In space, no safe bookmarks, stations present, within warp-in range o" + - "f a planet", ((string[])(null))); + "f a planet", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 165 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 166 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden - TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table23.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "100000000000", - "false"}); - table23.AddRow(new string[] { - "2", - "Dodixie IX - 9 - Astral Mining Inc. Refinery", - "100", - "100", - "100", - "15", - "750987", - "false"}); + TechTalk.SpecFlow.Table table57 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table57.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "100000000000", + "false"}); + table57.AddRow(new string[] { + "2", + "Dodixie IX - 9 - Astral Mining Inc. Refinery", + "100", + "100", + "100", + "15", + "750987", + "false"}); #line 168 -testRunner.And("I have entities", ((string)(null)), table23, "And "); +testRunner.And("I have entities", ((string)(null)), table57, "And "); +#line hidden #line 173 testRunner.And("I am at point \'0\',\'0\',\'0\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 174 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 175 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 176 testRunner.And("local is safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID"}); + TechTalk.SpecFlow.Table table58 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID"}); #line 177 -testRunner.And("I have bookmarks", ((string)(null)), table24, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table58, "And "); +#line hidden #line 179 testRunner.When("I check if I am safe", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 180 testRunner.Then("the result should be \'false\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Get safespot - All options available, should pick space safe")] - public virtual void GetSafespot_AllOptionsAvailableShouldPickSpaceSafe() + public void GetSafespot_AllOptionsAvailableShouldPickSpaceSafe() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - All options available, should pick space safe", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - All options available, should pick space safe", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 182 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 183 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 184 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID", - "ItemID", - "ID"}); - table25.AddRow(new string[] { - "safe: bookmark", - "16465", - "79798498", - "-47487676", - "1", - "-1", - "1"}); - table25.AddRow(new string[] { - "safe: station", - "-6546546", - "-2", - "1316354685", - "1", - "2", - "2"}); + TechTalk.SpecFlow.Table table59 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID", + "ItemID", + "ID"}); + table59.AddRow(new string[] { + "safe: bookmark", + "16465", + "79798498", + "-47487676", + "1", + "-1", + "1"}); + table59.AddRow(new string[] { + "safe: station", + "-6546546", + "-2", + "1316354685", + "1", + "2", + "2"}); #line 185 -testRunner.And("I have bookmarks", ((string)(null)), table25, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table59, "And "); +#line hidden #line 189 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table26.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "900000000000", - "false"}); - table26.AddRow(new string[] { - "2", - "Dodixie IX - 9 - Astral Mining Inc. Refinery", - "100", - "100", - "100", - "15", - "750987", - "false"}); + TechTalk.SpecFlow.Table table60 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table60.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "900000000000", + "false"}); + table60.AddRow(new string[] { + "2", + "Dodixie IX - 9 - Astral Mining Inc. Refinery", + "100", + "100", + "100", + "15", + "750987", + "false"}); #line 190 -testRunner.And("I have entities", ((string)(null)), table26, "And "); +testRunner.And("I have entities", ((string)(null)), table60, "And "); +#line hidden #line 194 testRunner.And("my home station is \'Dodixie IX - 9 - Astral Mining Inc. Refinery\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 195 testRunner.When("I get a safe spot", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 196 testRunner.Then("the the destination should be a bookmark destination matching bookmark ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Get safespot - No space safes available, should pick station safe")] - public virtual void GetSafespot_NoSpaceSafesAvailableShouldPickStationSafe() + public void GetSafespot_NoSpaceSafesAvailableShouldPickStationSafe() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No space safes available, should pick station safe", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No space safes available, should pick station safe", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 198 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 199 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 200 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID", - "ItemID", - "ID"}); - table27.AddRow(new string[] { - "safe: station", - "-6546546", - "-2", - "1316354685", - "1", - "200", - "2"}); + TechTalk.SpecFlow.Table table61 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID", + "ItemID", + "ID"}); + table61.AddRow(new string[] { + "safe: station", + "-6546546", + "-2", + "1316354685", + "1", + "200", + "2"}); #line 201 -testRunner.And("I have bookmarks", ((string)(null)), table27, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table61, "And "); +#line hidden #line 204 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table28.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "900000000000", - "false"}); - table28.AddRow(new string[] { - "200", - "Dodixie IX - 9 - Astral Mining Inc. Refinery", - "100", - "100", - "100", - "15", - "750987", - "false"}); + TechTalk.SpecFlow.Table table62 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table62.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "900000000000", + "false"}); + table62.AddRow(new string[] { + "200", + "Dodixie IX - 9 - Astral Mining Inc. Refinery", + "100", + "100", + "100", + "15", + "750987", + "false"}); #line 205 -testRunner.And("I have entities", ((string)(null)), table28, "And "); +testRunner.And("I have entities", ((string)(null)), table62, "And "); +#line hidden #line 209 testRunner.And("my home station is \'Dodixie IX - 9 - Astral Mining Inc. Refinery\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 210 testRunner.When("I get a safe spot", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 211 testRunner.Then("the the destination should be an entity destination matching entity ID \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Get safespot - No station safes available, should pick home station")] - public virtual void GetSafespot_NoStationSafesAvailableShouldPickHomeStation() + public void GetSafespot_NoStationSafesAvailableShouldPickHomeStation() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No station safes available, should pick home station", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No station safes available, should pick home station", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 213 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 214 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 215 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table29 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID", - "ItemID", - "ID"}); + TechTalk.SpecFlow.Table table63 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID", + "ItemID", + "ID"}); #line 216 -testRunner.And("I have bookmarks", ((string)(null)), table29, "And "); -#line hidden - TechTalk.SpecFlow.Table table30 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table30.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "900000000000", - "false"}); - table30.AddRow(new string[] { - "200", - "Dodixie IX - 9 - Astral Mining Inc. Refinery", - "100", - "100", - "100", - "15", - "750987", - "false"}); +testRunner.And("I have bookmarks", ((string)(null)), table63, "And "); +#line hidden + TechTalk.SpecFlow.Table table64 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table64.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "900000000000", + "false"}); + table64.AddRow(new string[] { + "200", + "Dodixie IX - 9 - Astral Mining Inc. Refinery", + "100", + "100", + "100", + "15", + "750987", + "false"}); #line 218 -testRunner.And("I have entities", ((string)(null)), table30, "And "); +testRunner.And("I have entities", ((string)(null)), table64, "And "); +#line hidden #line 222 testRunner.And("my home station is \'Dodixie IX - 9 - Astral Mining Inc. Refinery\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 223 testRunner.When("I get a safe spot", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 224 testRunner.Then("the the destination should be an entity destination matching entity ID \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 225 testRunner.And("we should dock at the destination", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 226 testRunner.And("the destination\'s distance should be \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Get safespot - No home station available, should pick any station")] - public virtual void GetSafespot_NoHomeStationAvailableShouldPickAnyStation() + public void GetSafespot_NoHomeStationAvailableShouldPickAnyStation() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No home station available, should pick any station", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No home station available, should pick any station", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 228 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 229 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 230 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table31 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID", - "ItemID", - "ID"}); + TechTalk.SpecFlow.Table table65 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID", + "ItemID", + "ID"}); #line 231 -testRunner.And("I have bookmarks", ((string)(null)), table31, "And "); -#line hidden - TechTalk.SpecFlow.Table table32 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table32.AddRow(new string[] { - "1", - "Dodixie IX", - "0", - "0", - "0", - "7", - "900000000000", - "false"}); - table32.AddRow(new string[] { - "200", - "Dodixie IX - 9 - Astral Mining Inc. Refinery", - "100", - "100", - "100", - "15", - "750987", - "false"}); +testRunner.And("I have bookmarks", ((string)(null)), table65, "And "); +#line hidden + TechTalk.SpecFlow.Table table66 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table66.AddRow(new string[] { + "1", + "Dodixie IX", + "0", + "0", + "0", + "7", + "900000000000", + "false"}); + table66.AddRow(new string[] { + "200", + "Dodixie IX - 9 - Astral Mining Inc. Refinery", + "100", + "100", + "100", + "15", + "750987", + "false"}); #line 233 -testRunner.And("I have entities", ((string)(null)), table32, "And "); +testRunner.And("I have entities", ((string)(null)), table66, "And "); +#line hidden #line 237 testRunner.And("my home station is \'Dodixie IV - 20 - Blaze It Fgts\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 238 testRunner.When("I get a safe spot", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 239 testRunner.Then("the the destination should be an entity destination matching entity ID \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 240 testRunner.And("we should dock at the destination", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 241 testRunner.And("the destination\'s distance should be \'200\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Get safespot - No station available, should pick a planet")] - public virtual void GetSafespot_NoStationAvailableShouldPickAPlanet() + public void GetSafespot_NoStationAvailableShouldPickAPlanet() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No station available, should pick a planet", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - No station available, should pick a planet", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 243 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 244 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 245 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table33 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID", - "ItemID", - "ID"}); + TechTalk.SpecFlow.Table table67 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID", + "ItemID", + "ID"}); #line 246 -testRunner.And("I have bookmarks", ((string)(null)), table33, "And "); -#line hidden - TechTalk.SpecFlow.Table table34 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); - table34.AddRow(new string[] { - "100", - "Dodixie IX", - "0", - "0", - "0", - "7", - "900000000000", - "false"}); +testRunner.And("I have bookmarks", ((string)(null)), table67, "And "); +#line hidden + TechTalk.SpecFlow.Table table68 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); + table68.AddRow(new string[] { + "100", + "Dodixie IX", + "0", + "0", + "0", + "7", + "900000000000", + "false"}); #line 248 -testRunner.And("I have entities", ((string)(null)), table34, "And "); +testRunner.And("I have entities", ((string)(null)), table68, "And "); +#line hidden #line 251 testRunner.When("I get a safe spot", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 252 testRunner.Then("the the destination should be an entity destination matching entity ID \'100\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line hidden #line 253 testRunner.And("the destination\'s distance should be \'100000000000\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Get safespot - Should not return any safespot we\'re already at - Space safe")] - public virtual void GetSafespot_ShouldNotReturnAnySafespotWeReAlreadyAt_SpaceSafe() + public void GetSafespot_ShouldNotReturnAnySafespotWereAlreadyAt_SpaceSafe() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - Should not return any safespot we\'re already at - Space safe", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - Should not return any safespot we\'re already at - Space safe", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 255 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 256 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 257 testRunner.And("I am at point \'16465\',\'79798498\',\'-47487676\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line hidden #line 258 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table35 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID", - "ItemID", - "ID"}); - table35.AddRow(new string[] { - "safe: bookmark", - "16465", - "79798498", - "-47487676", - "1", - "-1", - "1"}); - table35.AddRow(new string[] { - "safe: bookmark 2", - "-6546546", - "-2", - "1316354685", - "1", - "-1", - "2"}); + TechTalk.SpecFlow.Table table69 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID", + "ItemID", + "ID"}); + table69.AddRow(new string[] { + "safe: bookmark", + "16465", + "79798498", + "-47487676", + "1", + "-1", + "1"}); + table69.AddRow(new string[] { + "safe: bookmark 2", + "-6546546", + "-2", + "1316354685", + "1", + "-1", + "2"}); #line 259 -testRunner.And("I have bookmarks", ((string)(null)), table35, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table69, "And "); +#line hidden #line 263 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table36 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "X", - "Y", - "Z", - "GroupID", - "Distance", - "IsTargetingMe"}); + TechTalk.SpecFlow.Table table70 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "X", + "Y", + "Z", + "GroupID", + "Distance", + "IsTargetingMe"}); #line 264 -testRunner.And("I have entities", ((string)(null)), table36, "And "); +testRunner.And("I have entities", ((string)(null)), table70, "And "); +#line hidden #line 266 testRunner.When("I get a safe spot", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 267 testRunner.Then("the the destination should be a bookmark destination matching bookmark ID \'2\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Get safespot - Should not return any safespot we\'re already at - Planets")] - public virtual void GetSafespot_ShouldNotReturnAnySafespotWeReAlreadyAt_Planets() + public void GetSafespot_ShouldNotReturnAnySafespotWereAlreadyAt_Planets() { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - Should not return any safespot we\'re already at - Planets", ((string[])(null))); + string[] tagsOfScenario = ((string[])(null)); + System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Get safespot - Should not return any safespot we\'re already at - Planets", null, tagsOfScenario, argumentsOfScenario, featureTags); #line 269 -this.ScenarioSetup(scenarioInfo); +this.ScenarioInitialize(scenarioInfo); +#line hidden + if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags))) + { + testRunner.SkipScenario(); + } + else + { + this.ScenarioStart(); #line 7 this.FeatureBackground(); +#line hidden #line 270 testRunner.Given("I am in space", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line hidden #line 271 testRunner.And("my safe bookmark prefix is \'safe: \'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table37 = new TechTalk.SpecFlow.Table(new string[] { - "Label", - "X", - "Y", - "Z", - "SolarSystemID", - "ItemID", - "ID"}); + TechTalk.SpecFlow.Table table71 = new TechTalk.SpecFlow.Table(new string[] { + "Label", + "X", + "Y", + "Z", + "SolarSystemID", + "ItemID", + "ID"}); #line 272 -testRunner.And("I have bookmarks", ((string)(null)), table37, "And "); +testRunner.And("I have bookmarks", ((string)(null)), table71, "And "); +#line hidden #line 274 testRunner.And("I am in solarsystem ID \'1\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden - TechTalk.SpecFlow.Table table38 = new TechTalk.SpecFlow.Table(new string[] { - "ID", - "Name", - "GroupID", - "Distance"}); - table38.AddRow(new string[] { - "100", - "Dodixie IX", - "7", - "40000000000"}); - table38.AddRow(new string[] { - "101", - "Dodixie X", - "7", - "871049581709827"}); + TechTalk.SpecFlow.Table table72 = new TechTalk.SpecFlow.Table(new string[] { + "ID", + "Name", + "GroupID", + "Distance"}); + table72.AddRow(new string[] { + "100", + "Dodixie IX", + "7", + "40000000000"}); + table72.AddRow(new string[] { + "101", + "Dodixie X", + "7", + "871049581709827"}); #line 275 -testRunner.And("I have entities", ((string)(null)), table38, "And "); +testRunner.And("I have entities", ((string)(null)), table72, "And "); +#line hidden #line 279 testRunner.When("I get a safe spot", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line hidden #line 280 testRunner.Then("the the destination should be an entity destination matching entity ID \'101\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden + } this.ScenarioCleanup(); } } diff --git a/StealthBot.SpecFlow/Modules/SafespotsSteps.cs b/StealthBot.SpecFlow/Modules/SafespotsSteps.cs index ab7dd0d..59f963b 100644 --- a/StealthBot.SpecFlow/Modules/SafespotsSteps.cs +++ b/StealthBot.SpecFlow/Modules/SafespotsSteps.cs @@ -31,6 +31,11 @@ public class SafespotsSteps : CommonSteps private bool? _isAtSafeSpot; private Destination _safeSpotDestination; + public SafespotsSteps(CustomScenarioContext context, ScenarioContext scenarioContext) : base(context, scenarioContext) + { + // ... rest of the constructor code + } + [BeforeScenario("@Safespots")] public void BeforeScenarioSafespots() { diff --git a/StealthBot.SpecFlow/StealthBot.SpecFlow.csproj b/StealthBot.SpecFlow/StealthBot.SpecFlow.csproj index d44a38b..9991895 100644 --- a/StealthBot.SpecFlow/StealthBot.SpecFlow.csproj +++ b/StealthBot.SpecFlow/StealthBot.SpecFlow.csproj @@ -1,5 +1,8 @@  - + + + + Debug AnyCPU @@ -8,14 +11,17 @@ Properties StealthBot.SpecFlow StealthBot.SpecFlow - v4.5 + v4.8 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 10.0 + 16.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages False UnitTest + + + true true @@ -34,31 +40,64 @@ prompt 4 + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + + + ..\packages\BoDi.1.5.0\lib\net45\BoDi.dll + + + ..\packages\Gherkin.26.0.3\lib\net462\Gherkin.dll + False - ..\Libraries\ISXEVEWrapper.dll + ..\..\..\..\..\InnerSpace\.NET Programs\ISXEVEWrapper.dll False - ..\..\..\..\..\..\..\..\..\Program Files (x86)\InnerSpace\Lavish.InnerSpace.dll + ..\..\..\..\..\InnerSpace\Lavish.InnerSpace.dll ..\Libraries\NET40\Moq.dll - - ..\packages\NUnit.2.6.2\lib\nunit.framework.dll + + ..\packages\NUnit.3.13.3\lib\net45\nunit.framework.dll ..\Libraries\SpecAid.dll + + ..\packages\SpecFlow.Internal.Json.1.0.8\lib\net45\SpecFlow.Internal.Json.dll + - - ..\packages\SpecFlow.1.9.0\lib\net35\TechTalk.SpecFlow.dll + + ..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll + + + ..\packages\SpecFlow.3.9.74\lib\net461\TechTalk.SpecFlow.dll + + + ..\packages\SpecFlow.NUnit.3.9.74\lib\net461\TechTalk.SpecFlow.NUnit.SpecFlowPlugin.dll - + @@ -70,41 +109,18 @@ - - True - True - Targeting.feature - - - True - True - DropOffToJetissonContainerActionTest.feature - - - True - True - Safespots.feature - + - - SpecFlowSingleFileGenerator - Targeting.feature.cs - - - SpecFlowSingleFileGenerator - DropOffToJetissonContainerActionTest.feature.cs - + + - - SpecFlowSingleFileGenerator - Safespots.feature.cs - + @@ -137,6 +153,20 @@ + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + + + + +