andnotfilter.cs
来自「NUnit测试工具源码,他使用c#开发的一个测试工具」· CS 代码 · 共 27 行
CS
27 行
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 + =
减小字号Ctrl + -
显示快捷键?