public void Disconnect_NotConnected( ) { var iface = new SUTest(fakeDevice, "eth1"); iface.Disconnect( ); Assert.AreEqual(null, iface.GetOtherInterface( )); }
public void Connect_Other( ) { var iface = new SUTest(fakeDevice, "eth1"); var iface2 = new SUTest(fakeDevice, "eth2"); iface.Connect(iface2); Assert.AreEqual(iface2, iface.GetOtherInterface( )); Assert.AreEqual(iface, iface2.GetOtherInterface( )); }
public void Connect_Other( ) { var iface = new SUTest(fakeDevice, "eth1"); var iface2 = new SUTest(fakeDevice, "eth2"); iface.Connect(iface2); Assert.AreEqual(iface2, iface.GetOtherInterface( )); Assert.AreEqual(iface, iface2.GetOtherInterface( )); }
public void Connect_OtherFromOtherDevice_OtherName( ) { var iface = new SUTest(fakeDevice, "eth1"); var otherFakeDevice = new Abstract.Fakes.StubINetDevice( ); var iface2 = new SUTest(otherFakeDevice, "eth2"); iface.Connect(iface2); Assert.AreEqual(iface2, iface.GetOtherInterface( )); Assert.AreEqual(iface, iface2.GetOtherInterface( )); }
public void Connect_OtherFromOtherDevice_OtherName( ) { var iface = new SUTest(fakeDevice, "eth1"); var otherFakeDevice = new Abstract.Fakes.StubINetDevice( ); var iface2 = new SUTest(otherFakeDevice, "eth2"); iface.Connect(iface2); Assert.AreEqual(iface2, iface.GetOtherInterface( )); Assert.AreEqual(iface, iface2.GetOtherInterface( )); }
public void Disconnect_Connected( ) { var iface = new SUTest(fakeDevice, "eth1"); #region Connect var otherFakeDevice = new Abstract.Fakes.StubINetDevice( ); var iface2 = new SUTest(otherFakeDevice, "eth1"); iface.Connect(iface2); #endregion iface.Disconnect( ); Assert.AreEqual(null, iface.GetOtherInterface( )); Assert.AreEqual(null, iface2.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( )); }