Added test for bug fix (CompositionProxyTypeBuilder crashed when type had protected constructor)
This commit is contained in:
@@ -169,6 +169,14 @@ namespace Spring.Context.Support
|
||||
IApplicationContext context = ContextRegistry.GetContext("bingo");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CanBuildProxyForClassWithProtectedConstructor()
|
||||
{
|
||||
CompositionProxyTypeBuilder typeBuilder = new CompositionProxyTypeBuilder();
|
||||
typeBuilder.TargetType = typeof(ClassWithProtectedCtor);
|
||||
typeBuilder.BuildProxyType();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ClearWithDynamicProxies()
|
||||
{
|
||||
|
||||
@@ -338,6 +338,7 @@
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HookableContextHandler.cs" />
|
||||
<Compile Include="Objects\ClassWithProtectedCtor.cs" />
|
||||
<Compile Include="Objects\ExpressionTestObject.cs" />
|
||||
<Compile Include="Objects\Factory\Attributes\PostConstructAttributeTests.cs" />
|
||||
<Compile Include="Objects\Factory\Attributes\AutowireByTypeNormalTests.cs" />
|
||||
|
||||
Reference in New Issue
Block a user