diff --git a/EduNetworkBuilder/NB.cs b/EduNetworkBuilder/NB.cs index 1e0058b..e7fac4c 100644 --- a/EduNetworkBuilder/NB.cs +++ b/EduNetworkBuilder/NB.cs @@ -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 diff --git a/EduNetworkBuilder/NetTest.cs b/EduNetworkBuilder/NetTest.cs index dc95a10..fdfd45e 100644 --- a/EduNetworkBuilder/NetTest.cs +++ b/EduNetworkBuilder/NetTest.cs @@ -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, @"(?[A-z:0-9]+) - (?\d+)");