@@ -17,13 +17,9 @@ public class TestAssets
1717
1818 private FileInfo _dotnetCsprojExe ;
1919
20- private FileInfo _dotnetProjectJsonExe ;
21-
22- private const string ProjectJsonSearchPattern = "project.json" ;
23-
2420 private const string CsprojSearchPattern = "*.csproj" ;
2521
26- public TestAssets ( DirectoryInfo assetsRoot , FileInfo dotnetCsprojExe , FileInfo dotnetProjectJsonExe )
22+ public TestAssets ( DirectoryInfo assetsRoot , FileInfo dotnetCsprojExe )
2723 {
2824 if ( assetsRoot == null )
2925 {
@@ -35,11 +31,6 @@ public TestAssets(DirectoryInfo assetsRoot, FileInfo dotnetCsprojExe, FileInfo d
3531 throw new ArgumentNullException ( nameof ( dotnetCsprojExe ) ) ;
3632 }
3733
38- if ( dotnetProjectJsonExe == null )
39- {
40- throw new ArgumentNullException ( nameof ( dotnetProjectJsonExe ) ) ;
41- }
42-
4334 if ( ! assetsRoot . Exists )
4435 {
4536 throw new DirectoryNotFoundException ( $ "Directory not found at '{ assetsRoot } '") ;
@@ -50,16 +41,9 @@ public TestAssets(DirectoryInfo assetsRoot, FileInfo dotnetCsprojExe, FileInfo d
5041 throw new FileNotFoundException ( "Csproj dotnet executable must exist" , dotnetCsprojExe . FullName ) ;
5142 }
5243
53- if ( ! dotnetProjectJsonExe . Exists )
54- {
55- throw new FileNotFoundException ( "project.json dotnet executable must exist" , dotnetProjectJsonExe . FullName ) ;
56- }
57-
5844 _root = assetsRoot ;
5945
6046 _dotnetCsprojExe = dotnetCsprojExe ;
61-
62- _dotnetProjectJsonExe = dotnetProjectJsonExe ;
6347 }
6448
6549 public TestAssetInfo Get ( string name )
@@ -78,22 +62,6 @@ public TestAssetInfo Get(string kind, string name)
7862 CsprojSearchPattern ) ;
7963 }
8064
81- public TestAssetInfo GetProjectJson ( string name )
82- {
83- return GetProjectJson ( TestAssetKinds . TestProjects , name ) ;
84- }
85-
86- public TestAssetInfo GetProjectJson ( string kind , string name )
87- {
88- var assetDirectory = new DirectoryInfo ( Path . Combine ( _root . FullName , kind , name ) ) ;
89-
90- return new TestAssetInfo (
91- assetDirectory ,
92- name ,
93- _dotnetProjectJsonExe ,
94- ProjectJsonSearchPattern ) ;
95- }
96-
9765 public DirectoryInfo CreateTestDirectory ( string testProjectName = "temp" , [ CallerMemberName ] string callingMethod = "" , string identifier = "" )
9866 {
9967 var testDestination = GetTestDestinationDirectoryPath ( testProjectName , callingMethod , identifier ) ;
0 commit comments