コード例 #1
0
 /// <exception cref="System.Exception"></exception>
 private void AssertReadClose(Socket4Adapter socketToBeClosed, ICodeBlock codeBlock
                              )
 {
     NetworkSocketTestCase.CatchAllThread thread = new NetworkSocketTestCase.CatchAllThread
                                                       (codeBlock);
     thread.EnsureStarted();
     socketToBeClosed.Close();
     thread.Join();
     Assert.IsInstanceOf(typeof(Db4oIOException), thread.Caught());
 }
コード例 #2
0
		/// <exception cref="System.Exception"></exception>
		private void AssertReadClose(Socket4Adapter socketToBeClosed, ICodeBlock codeBlock
			)
		{
			NetworkSocketTestCase.CatchAllThread thread = new NetworkSocketTestCase.CatchAllThread
				(codeBlock);
			thread.EnsureStarted();
			socketToBeClosed.Close();
			thread.Join();
			Assert.IsInstanceOf(typeof(Db4oIOException), thread.Caught());
		}