Initial debugging of test completion process

This commit is contained in:
Tim Young 2018-10-05 08:48:46 -05:00
parent a81392ca75
commit 87e483c43e
2 changed files with 8 additions and 1 deletions

View File

@ -380,6 +380,7 @@ namespace EduNetworkBuilder
public static int PacketDamageDistance = 25;
public static bool DebugActions = true;
public static bool DebugTests = true;
public static int NumBadPackets = 7; //the number of packets to spray out

View File

@ -452,11 +452,17 @@ namespace EduNetworkBuilder
PacketNumber = PacketID; //Track the packetID of the first packet to complete the task
NB.PlaySound(NBSoundType.success);
NB.MarkToUpdate();
if (NB.DebugTests) { Console.WriteLine(" Marking Test Complete: " + TestDumpString()); }
}
TaskWasDone = true;
}
public string TestDumpString()
{
string OurStatus = sHost + " -> " + dHost + " " + TheTest.ToString();
return OurStatus;
}
public string GetInterfaceFromVLANInterfaceRequirement()
{
Match result = Regex.Match(dHost, @"(?<interface>[A-z:0-9]+) - (?<id>\d+)");