Skip to content

Commit

Permalink
Report NoTests is a non-test member is targeted (issue #7).
Browse files Browse the repository at this point in the history
This allow it to fall through to using TesDriven.Net's "Ad hoc" test runner.
  • Loading branch information
jcansdale committed Aug 1, 2016
1 parent 899d7df commit 0be8de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<Compile Include="Expected\InconclusiveTests.cs" />
<Compile Include="Expected\MethodTests.cs" />
<Compile Include="Expected\NestedClassTests.cs" />
<Compile Include="Expected\AdHocTests.cs" />
<Compile Include="Expected\OverloadedMethodTests.cs" />
<Compile Include="Expected\PrivateTests.cs" />
<Compile Include="Expected\TestCaseTests.cs" />
Expand Down
2 changes: 1 addition & 1 deletion src/NUnitTDNet.Adapter/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static string GetWhereForTarget(Assembly assembly, MemberInfo member)
return orWhereClauses(whereClauseList);
}

throw new Exception("Member type not supported: " + member.GetType());
return null; // no tests
}

static string orWhereClauses(ICollection<string> whereClauses)
Expand Down

0 comments on commit 0be8de4

Please sign in to comment.