notfilter.cs

来自「NUnit测试工具源码,他使用c#开发的一个测试工具」· CS 代码 · 共 24 行

CS
24
字号
using System;

namespace NUnit.Core.Filters
{
	/// <summary>
	/// NotFilter negates the operation of another filter
	/// </summary>
	[Serializable]
	public class NotFilter : TestFilter
	{
		TestFilter baseFilter;

		public NotFilter( TestFilter baseFilter)
		{
			this.baseFilter = baseFilter;
		}

		public override bool Pass( ITest test )
		{
			return !test.IsExplicit && !baseFilter.Pass( test );
		}
 	}
}

⌨️ 快捷键说明

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