コード例 #1
0
        public void OpenFaulted()
        {
            ExtCommObj obj = new ExtCommObj();

            obj.XFault();
            obj.Open();
        }
コード例 #2
0
        public void CloseFaulted()
        {
            ExtCommObj obj = new ExtCommObj();

            obj.Open();
            obj.XFault();
            obj.Close();
        }
コード例 #3
0
        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");
        }
コード例 #4
0
        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!
        }
コード例 #5
0
		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!
		}
コード例 #6
0
		public void CloseFaulted ()
		{
			ExtCommObj obj = new ExtCommObj ();
			obj.Open ();
			obj.XFault ();
			obj.Close ();
		}
コード例 #7
0
		public void OpenFaulted ()
		{
			ExtCommObj obj = new ExtCommObj ();
			obj.XFault ();
			obj.Open ();
		}
コード例 #8
0
		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");
		}