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

📄 andnotfilter.cs

📁 NUnit测试工具源码,他使用c#开发的一个测试工具
💻 CS
字号:
using System;

namespace NUnit.Core.Filters
{
	/// <summary>
	/// AndNotFilter allows for including on a filter criterion unless
	/// some other criterion applies. It is intended for use with runners
	/// that allow separte specification of include and exclude criteria.
	/// </summary>
	public class AndNotFilter : ITestFilter
	{
		private ITestFilter include;
		private ITestFilter exclude;

		public AndNotFilter( ITestFilter include, ITestFilter exclude )
		{
			this.include = include;
			this.exclude = exclude;
		}

		public bool Pass( ITest test )
		{
			return this.include.Pass( test ) && !this.exclude.Pass( test );
		}
	}
}

⌨️ 快捷键说明

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