From 98fae3192fe209d41e99a2e9634e3319331f36cb Mon Sep 17 00:00:00 2001 From: Tim Young Date: Mon, 14 Aug 2017 15:51:05 -0500 Subject: [PATCH] When we check net-tests, we can pass in the network. This allows us to use this func if we do not have a network loaded. --- EduNetworkBuilder/NetTest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/EduNetworkBuilder/NetTest.cs b/EduNetworkBuilder/NetTest.cs index 35dd0c3..516c599 100644 --- a/EduNetworkBuilder/NetTest.cs +++ b/EduNetworkBuilder/NetTest.cs @@ -440,9 +440,10 @@ namespace EduNetworkBuilder /// See if the test has been solved /// /// - public bool TestComplete() + public bool TestComplete(Network UseThisNet = null) { - Network theNet = NB.GetNetwork(); + Network theNet = UseThisNet; + if(theNet == null) theNet= NB.GetNetwork(); NetworkDevice Source = theNet.GetDeviceFromName(sHost); NetworkDevice Dest = theNet.GetDeviceFromName(dHost); IPAddress gw;