File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ private void Info()
4141 var res = dotnetCliInvoker . RunCommand ( "--info" , silent : false ) ;
4242 if ( ! res )
4343 {
44- throw new Exception ( $ "{ dotnetCliInvoker . Exec } --info failed .") ;
44+ logger . LogError ( $ "{ dotnetCliInvoker . Exec } --info was terminated unexpectedly .") ;
4545 }
4646 }
4747
Original file line number Diff line number Diff line change @@ -79,27 +79,6 @@ public void TestDotnetInfo()
7979 Assert . Equal ( "--info" , lastArgs ) ;
8080 }
8181
82- [ Fact ]
83- public void TestDotnetInfoFailure ( )
84- {
85- // Setup
86- var dotnetCliInvoker = new DotNetCliInvokerStub ( new List < string > ( ) ) { Success = false } ;
87-
88- // Execute
89- try
90- {
91- _ = MakeDotnet ( dotnetCliInvoker ) ;
92- }
93-
94- // Verify
95- catch ( Exception e )
96- {
97- Assert . Equal ( "dotnet --info failed." , e . Message ) ;
98- return ;
99- }
100- Assert . Fail ( "Expected exception" ) ;
101- }
102-
10382 [ Fact ]
10483 public void TestDotnetRestoreProjectToDirectory1 ( )
10584 {
You can’t perform that action at this time.
0 commit comments