@@ -24,13 +24,14 @@ public void DependencySearch_IndirectReference_NotFound()
2424 [ Fact ( DisplayName = "Does not find things that are not dependency at all" ) ]
2525 public void DependencySearch_Garbage_NotFound ( )
2626 {
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 ) ;
2828 }
2929
3030 [ Fact ( DisplayName = "Does not find a dependency that only partially matches actually referenced type." ) ]
3131 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 ,
3435 dependencyToSearch : typeof ( ExampleDep ) ,
3536 expectToFindClass : false ,
3637 expectToFindNamespace : true ) ;
@@ -48,7 +49,8 @@ public void DependencySearch_PartiallyMatchingNamespace_NotFound()
4849 [ Fact ( DisplayName = "Does not find a dependency that differs only in case from actually referenced type." ) ]
4950 public void DependencySearch_DependencyWithDifferentCaseOfCharacters_NotFound ( )
5051 {
51- Utils . RunDependencyTest ( Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) ) ,
52+ var subjects = Utils . GetTypesThatResideInTheSameNamespaceButWithoutGivenType ( typeof ( IndirectReference ) , typeof ( GenericMethodGenericParameter ) ) ;
53+ Utils . RunDependencyTest ( subjects ,
5254 dependencyToSearch : typeof ( ExampleDEPENDENCY ) ,
5355 expectToFindClass : false ,
5456 expectToFindNamespace : true ) ;
0 commit comments