Skip to content

Commit

Permalink
Merge pull request #31 from picoe/curtis/unit-test-filters
Browse files Browse the repository at this point in the history
Make unit test filters public
  • Loading branch information
cwensley authored Apr 2, 2020
2 parents d19e56b + 6c4824d commit 57e081b
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build/Common.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!-- set version for CI build -->
<Version Condition="$(Version) == '' AND $(BuildVersion) != ''">$(BuildVersion)</Version>

<Version Condition="$(Version) == ''">0.2.0-dev</Version>
<Version Condition="$(Version) == ''">0.3.0-dev</Version>
<Authors>Eto.Toolkit Authors</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/picoe/Eto.Toolkit</RepositoryUrl>
Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/AndFilter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class AndFilter : ITestFilter
public class AndFilter : ITestFilter
{
public List<ITestFilter> Filters { get; }

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/BaseFilter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Linq;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
abstract class BaseFilter : ITestFilter
public abstract class BaseFilter : ITestFilter
{
public bool IsExplicitMatch(ITest test) => Matches(test);

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/CategoryFilter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class CategoryFilter : BaseFilter
public class CategoryFilter : BaseFilter
{
public List<string> Categories { get; }

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/EmptyFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class EmptyFilter : ITestFilter
public class EmptyFilter : ITestFilter
{
public bool IsExplicitMatch(ITest test) => true;

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/KeywordFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Linq;
using System.Text.RegularExpressions;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class KeywordFilter : BaseFilter
public class KeywordFilter : BaseFilter
{
string keywords;
string[][] keywordTokens;
Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/NotFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class NotFilter : ITestFilter
public class NotFilter : ITestFilter
{
public ITestFilter Filter { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/NotRunFilter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Linq;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class NotRunFilter : ITestFilter
public class NotRunFilter : ITestFilter
{
Func<ITest, ITestResult> LookupResult { get; }

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/OrFilter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class OrFilter : ITestFilter
public class OrFilter : ITestFilter
{
public List<ITestFilter> Filters { get; }

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/SingleTestFilter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Reflection;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class SingleTestFilter : ITestFilter
public class SingleTestFilter : ITestFilter
{
public ITest Test { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions src/Eto.UnitTest/Filters/StatusFilter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Linq;

namespace Eto.UnitTest
namespace Eto.UnitTest.Filters
{
class StatusFilter : ITestFilter
public class StatusFilter : ITestFilter
{
Func<ITest, ITestResult> _lookupResult;

Expand Down
1 change: 1 addition & 0 deletions src/Eto.UnitTest/Filters/TestFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Collections;
using Eto.UnitTest.Filters;

namespace Eto.UnitTest
{
Expand Down
1 change: 1 addition & 0 deletions src/Eto.UnitTest/UI/UnitTestPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Collections.Concurrent;
using System.ComponentModel;
using Eto.UnitTest.Runners;
using Eto.UnitTest.Filters;

namespace Eto.UnitTest.UI
{
Expand Down

0 comments on commit 57e081b

Please sign in to comment.