Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Oct 18, 2020
1 parent 944fb75 commit 912e361
Show file tree
Hide file tree
Showing 5 changed files with 344 additions and 101 deletions.
97 changes: 0 additions & 97 deletions VContainer.StandaloneTests/FactoryTest.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public static InjectTypeInfo Analyze(Type type)
// Constructor, single [Inject] constructor -> single most parameters constuctor
var injectConstructorCount = 0;
var maxParameters = -1;
foreach (var constructorInfo in typeInfo.GetConstructors(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)) {
foreach (var constructorInfo in typeInfo.GetConstructors(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic))
{
if (constructorInfo.IsDefined(typeof(InjectAttribute), true))
{
if (++injectConstructorCount > 1)
Expand Down
Loading

0 comments on commit 912e361

Please sign in to comment.