Permalink
Browse files

Merge branch 'hotfix-0.6.2' into develop

Conflicts:
	Source/Machine.Specifications.Specs/CatchSpecs.cs
	ripple.config
  • Loading branch information...
2 parents 442947f + 318e2f3 commit dc9660b1668dc0a3d532643b00dacb55918b0950 @danielmarbach danielmarbach committed Jan 7, 2014
@@ -25,16 +25,16 @@ public void ExploreAssembly(IProject project, IMetadataAssembly assembly, UnitTe
{
using (ReadLockCookie.Create()) //Get a read lock so that it is safe to read the assembly
{
- foreach (var metadataTypeInfo in GetExportedTypes(assembly.GetTypes()))
+ foreach (var metadataTypeInfo in GetTypesIncludingNested(assembly.GetTypes()))
this._assemblyExplorer.Explore(project, assembly, consumer, metadataTypeInfo);
}
}
- private static IEnumerable<IMetadataTypeInfo> GetExportedTypes(IEnumerable<IMetadataTypeInfo> types)
+ private static IEnumerable<IMetadataTypeInfo> GetTypesIncludingNested(IEnumerable<IMetadataTypeInfo> types)
{
- foreach (var type in (types ?? Enumerable.Empty<IMetadataTypeInfo>()).Where(IsPublic))
+ foreach (var type in (types ?? Enumerable.Empty<IMetadataTypeInfo>()))
{
- foreach (var nestedType in GetExportedTypes(type.GetNestedTypes())) //getting nested classes too
+ foreach (var nestedType in GetTypesIncludingNested(type.GetNestedTypes())) //getting nested classes too
{
yield return nestedType;
}
@@ -43,11 +43,6 @@ private static IEnumerable<IMetadataTypeInfo> GetExportedTypes(IEnumerable<IMeta
}
}
- private static bool IsPublic(IMetadataTypeInfo type)
- {
- return (type.IsNested && type.IsNestedPublic) || type.IsPublic;
- }
-
public IUnitTestProvider Provider
{
get { return _provider; }
@@ -31,16 +31,16 @@ public void ExploreAssembly(IProject project, IMetadataAssembly assembly, UnitTe
{
using (ReadLockCookie.Create()) //Get a read lock so that it is safe to read the assembly
{
- foreach (var metadataTypeInfo in GetExportedTypes(assembly.GetTypes()))
+ foreach (var metadataTypeInfo in GetTypesIncludingNested(assembly.GetTypes()))
this._assemblyExplorer.Explore(project, assembly, consumer, metadataTypeInfo);
}
}
- private static IEnumerable<IMetadataTypeInfo> GetExportedTypes(IEnumerable<IMetadataTypeInfo> types)
+ private static IEnumerable<IMetadataTypeInfo> GetTypesIncludingNested(IEnumerable<IMetadataTypeInfo> types)
{
- foreach (var type in (types ?? Enumerable.Empty<IMetadataTypeInfo>()).Where(IsPublic))
+ foreach (var type in (types ?? Enumerable.Empty<IMetadataTypeInfo>()))
{
- foreach (var nestedType in GetExportedTypes(type.GetNestedTypes())) //getting nested classes too
+ foreach (var nestedType in GetTypesIncludingNested(type.GetNestedTypes())) //getting nested classes too
{
yield return nestedType;
}
@@ -49,11 +49,6 @@ private static IEnumerable<IMetadataTypeInfo> GetExportedTypes(IEnumerable<IMeta
}
}
- private static bool IsPublic(IMetadataTypeInfo type)
- {
- return (type.IsNested && type.IsNestedPublic) || type.IsPublic;
- }
-
public IUnitTestProvider Provider
{
get { return _provider; }

0 comments on commit dc9660b

Please sign in to comment.