Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes more CanBeCastTo() errors related to open generics types. Closes …
- Loading branch information
1 parent
83f6131
commit 791a66c
Showing
10 changed files
with
94 additions
and
15 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/StructureMap.Testing/Bugs/Bug_300_naive_can_be_plugged_into_tests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using NUnit.Framework; | ||
using StructureMap.Pipeline; | ||
|
||
namespace StructureMap.Testing.Bugs | ||
{ | ||
[TestFixture] | ||
public class Bug_300_naive_can_be_plugged_into_tests | ||
{ | ||
public interface IInterface { } | ||
|
||
[Test] | ||
public void throw_defensive_check_on_constructor_instance() | ||
{ | ||
Exception<ArgumentOutOfRangeException>.ShouldBeThrownBy(() => | ||
{ | ||
new ConstructorInstance(typeof (IInterface)); | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters