File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
TestStack.ConventionTests.Tests Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
namespace SampleApp . Tests
2
2
{
3
- using System . Linq ;
4
3
using NUnit . Framework ;
5
4
using SampleApp . Domain ;
6
5
using TestStack . ConventionTests ;
@@ -15,7 +14,7 @@ public class DomainTests
15
14
public DomainTests ( )
16
15
{
17
16
domainEntities = Types . InAssemblyOf < DomainClass > ( "Domain Entities" ,
18
- types => types . Where ( t => t . Namespace . StartsWith ( "SampleApp.Domain" ) ) ) ;
17
+ type => type . Namespace . StartsWith ( "SampleApp.Domain" ) ) ;
19
18
}
20
19
21
20
[ Test ]
Original file line number Diff line number Diff line change 1
1
namespace TestStack . ConventionTests . Tests
2
2
{
3
- using System . Linq ;
4
3
using ApprovalTests ;
5
4
using ApprovalTests . Reporters ;
6
5
using NUnit . Framework ;
@@ -17,7 +16,7 @@ public class TypeBasedConventions
17
16
public TypeBasedConventions ( )
18
17
{
19
18
nhibernateEntities = Types . InAssemblyOf < SampleDomainClass > ( "nHibernate Entitites" ,
20
- types => types . Where ( t => t . IsConcreteClass ( ) && t . Namespace == typeof ( SampleDomainClass ) . Namespace ) ) ;
19
+ type => type . IsConcreteClass ( ) && type . Namespace == typeof ( SampleDomainClass ) . Namespace ) ;
21
20
}
22
21
23
22
[ Test ]
You can’t perform that action at this time.
0 commit comments