public void Disconnect_ReConnected( ) { var iface = new SUTest(fakeDevice, "eth1"); #region ReConnect var otherFakeDevice = new Abstract.Fakes.StubINetDevice( ); var iface2 = new SUTest(otherFakeDevice, "eth1"); iface.Connect(iface2); iface.Disconnect( ); iface.Connect(iface2); #endregion iface.Disconnect( ); Assert.AreEqual(null, iface.GetOtherInterface( )); Assert.AreEqual(null, iface2.GetOtherInterface( )); }
public void Disconnect_NotConnected( ) { var iface = new SUTest(fakeDevice, "eth1"); iface.Disconnect( ); Assert.AreEqual(null, iface.GetOtherInterface( )); }
public void Connect_ReConnected( ) { var iface = new SUTest(fakeDevice, "eth1"); #region Disconnect var otherFakeDevice = new Abstract.Fakes.StubINetDevice( ); var iface2 = new SUTest(otherFakeDevice, "eth1"); iface.Connect(iface2); iface.Disconnect( ); #endregion iface.Connect(iface2); Assert.AreEqual(iface2, iface.GetOtherInterface( )); Assert.AreEqual(iface, iface2.GetOtherInterface( )); }
public void Disconnect_NotConnected( ) { var iface = new SUTest(fakeDevice, "eth1"); iface.Disconnect( ); Assert.AreEqual(null, iface.GetOtherInterface( )); }