Skip to content

Commit 3cc5231

Browse files
author
Jake Ginnivan
committed
Added InAssemblyOf<T>() to types
1 parent 23dd61b commit 3cc5231

File tree

1 file changed

+9
-0
lines changed
  • TestStack.ConventionTests/ConventionData

1 file changed

+9
-0
lines changed

TestStack.ConventionTests/ConventionData/Types.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,14 @@ public Types(string descriptionOfTypes)
1818
public string Description { get; private set; }
1919

2020
public bool HasData {get { return TypesToVerify.Any(); }}
21+
22+
public static Types InAssemblyOf<T>()
23+
{
24+
var assembly = typeof (T).Assembly;
25+
return new Types(assembly.GetName().Name)
26+
{
27+
TypesToVerify = assembly.GetTypes()
28+
};
29+
}
2130
}
2231
}

0 commit comments

Comments
 (0)