📄 andnotfilter.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 + -