@@ -24,13 +24,14 @@ public void DependencySearch_IndirectReference_NotFound()
24
24
[ Fact ( DisplayName = "Does not find things that are not dependency at all" ) ]
25
25
public void DependencySearch_Garbage_NotFound ( )
26
26
{
27
- Utils . RunDependencyTest ( Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) ) , new List < string > { "System.Object::.ctor()" , "T" , "T1" , "T2" , "ctor()" , "!1)" , "::.ctor(!0" } , false ) ;
27
+ Utils . RunDependencyTest ( Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) ) , new List < string > { "System.Object::.ctor()" , "T" , "T1" , "T2" , "ctor()" , "!1)" , "::.ctor(!0" , "T1&" , "T2&" , "T1[]" , "T2[]" } , false ) ;
28
28
}
29
29
30
30
[ Fact ( DisplayName = "Does not find a dependency that only partially matches actually referenced type." ) ]
31
31
public void DependencySearch_PartiallyMatchingDependency_NotFound ( )
32
- {
33
- Utils . RunDependencyTest ( Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) ) ,
32
+ {
33
+ var subjects = Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) , typeof ( GenericMethodGenericParameter ) ) ;
34
+ Utils . RunDependencyTest ( subjects ,
34
35
dependencyToSearch : typeof ( ExampleDep ) ,
35
36
expectToFindClass : false ,
36
37
expectToFindNamespace : true ) ;
@@ -48,7 +49,8 @@ public void DependencySearch_PartiallyMatchingNamespace_NotFound()
48
49
[ Fact ( DisplayName = "Does not find a dependency that differs only in case from actually referenced type." ) ]
49
50
public void DependencySearch_DependencyWithDifferentCaseOfCharacters_NotFound ( )
50
51
{
51
- Utils . RunDependencyTest ( Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) ) ,
52
+ var subjects = Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) , typeof ( GenericMethodGenericParameter ) ) ;
53
+ Utils . RunDependencyTest ( subjects ,
52
54
dependencyToSearch : typeof ( ExampleDEPENDENCY ) ,
53
55
expectToFindClass : false ,
54
56
expectToFindNamespace : true ) ;
0 commit comments