⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clienttimeoutfixture.cs

📁 C#编写的网络爬虫程序 效率很高 很好用!
💻 CS
字号:
using System;
using System.IO;
using System.Threading;
using NUnit.Framework;

namespace NUnit.Tests.TimingTests
{
	/// <summary>
	/// Summary description for ClientTimeoutFixture.
	/// </summary>
	[TestFixture]
	public class ClientTimeoutFixture
	{
		// Test using timeout greater than default of five minutes
		private readonly TimeSpan timeout = TimeSpan.FromMinutes( 6 );

		/// <summary>
		/// Test that listener is connected after
		/// a long delay. When run from GUI, this
		/// tests UIActions. When run from console
		/// runner it tests ConsoleUI.
		/// </summary>
		[Test]
		public void ListenerTimeoutTest()
		{
			// Time delay
			Thread.Sleep( timeout );
		}

		[Test]
		public void WriterTimeoutTest()
		{
			// Time delay
			Thread.Sleep( timeout );

			Console.WriteLine( "Message from WriterTimeoutTest" );
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -