Skip to content

Commit 32fd607

Browse files
author
Gurpreet Singh
committed
cleanup ExceptionProcessor
1 parent 3d1a0b4 commit 32fd607

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/TestStack.BDDfy/Processors/ExceptionProcessor.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,11 @@ public class ExceptionProcessor(Action assertInconclusive): IProcessor
1010
private readonly Action _assertInconclusive = assertInconclusive;
1111
private static readonly Action BestGuessInconclusiveAssertion;
1212

13-
static readonly List<string> ExcludedAssemblies =
14-
new(new[] { "System", "mscorlib", "TestStack.BDDfy", "TestDriven", "JetBrains.ReSharper" });
15-
1613
static ExceptionProcessor()
1714
{
18-
var exceptionType = typeof(Exception);
19-
2015
BestGuessInconclusiveAssertion = () => { throw new InconclusiveException(); };
2116
}
2217

23-
private static IEnumerable<Type> GetTypesSafely(Assembly assembly)
24-
{
25-
try
26-
{
27-
return assembly.GetTypes();
28-
}
29-
catch (ReflectionTypeLoadException ex)
30-
{
31-
return ex.Types.Where(x => x != null);
32-
}
33-
}
34-
35-
//http://stackoverflow.com/questions/520290/how-can-i-get-the-default-value-of-a-type-in-a-non-generic-way
36-
static object DefaultValue(Type myType)
37-
{
38-
return !myType.IsValueType() ? null : Activator.CreateInstance(myType);
39-
}
40-
4118
public ExceptionProcessor() : this(BestGuessInconclusiveAssertion)
4219
{
4320
}

0 commit comments

Comments
 (0)