public void OpenFaulted() { ExtCommObj obj = new ExtCommObj(); obj.XFault(); obj.Open(); }
public void CloseFaulted() { ExtCommObj obj = new ExtCommObj(); obj.Open(); obj.XFault(); obj.Close(); }
public void Fault() { ExtCommObj obj = new ExtCommObj(); obj.XFault(); obj = new ExtCommObj(); obj.Open(); obj.XFault(); Assert.AreEqual(CommunicationState.Faulted, obj.State, "#1"); Assert.AreEqual(false, obj.IsDisposed, "#2"); }
public void AbortFaulted() { ExtCommObj obj = new ExtCommObj(); obj.Open(); obj.XFault(); Assert.AreEqual(CommunicationState.Faulted, obj.State, "#1"); obj.Abort(); // does not raise an error Assert.AreEqual(CommunicationState.Closed, obj.State, "#2"); Assert.IsTrue(obj.Aborted, "#3"); Assert.IsFalse(obj.Closed, "#4"); obj.Abort(); // does not raise an error! }
public void AbortFaulted () { ExtCommObj obj = new ExtCommObj (); obj.Open (); obj.XFault (); Assert.AreEqual (CommunicationState.Faulted, obj.State, "#1"); obj.Abort (); // does not raise an error Assert.AreEqual (CommunicationState.Closed, obj.State, "#2"); Assert.IsTrue (obj.Aborted, "#3"); Assert.IsFalse (obj.Closed, "#4"); obj.Abort (); // does not raise an error! }
public void CloseFaulted () { ExtCommObj obj = new ExtCommObj (); obj.Open (); obj.XFault (); obj.Close (); }
public void OpenFaulted () { ExtCommObj obj = new ExtCommObj (); obj.XFault (); obj.Open (); }
public void Fault () { ExtCommObj obj = new ExtCommObj (); obj.XFault (); obj = new ExtCommObj (); obj.Open (); obj.XFault (); Assert.AreEqual (CommunicationState.Faulted, obj.State, "#1"); Assert.AreEqual (false, obj.IsDisposed, "#2"); }