Eto.Test.Sections.CategoryFilter.Pass C# (CSharp) Method

Pass() public method

public Pass ( ITest test ) : bool
test ITest
return bool
		public virtual bool Pass(ITest test)
		{
			if (Assembly != null && ExecutingAssembly != Assembly)
				return false;

			bool pass = true;
			if (!test.IsSuite)
			{
				var parents = GetParents(test).ToList();
				pass &= parents.Any(MatchesKeyword);
				pass &= parents.Any(MatchesIncludeCategory);
				pass &= !parents.Any(MatchesExcludeCategory);
			}

			if (!pass)
				SkipCount++;
			return pass;
		}