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.

This commit is contained in:
Tim Young 2017-08-14 15:51:05 -05:00
parent 02e3b45cb2
commit 98fae3192f
1 changed files with 3 additions and 2 deletions

View File

@ -440,9 +440,10 @@ namespace EduNetworkBuilder
/// See if the test has been solved
/// </summary>
/// <returns></returns>
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;