@@ -68,41 +68,6 @@ public void MissingArgumentValue_Fails()
68
68
. And . HaveStdErrContaining ( $ "Failed to parse supported options or their values:") ;
69
69
}
70
70
71
- [ Fact ]
72
- public void File_ExistsNoDirectorySeparator_RoutesToSDK ( )
73
- {
74
- // Create a file named "build" in the current directory to simulate a file that happens to match the name of a command
75
- string buildFile = Path . Combine ( sharedTestState . BaseDirectory . Location , "build" ) ;
76
- File . WriteAllText ( buildFile , string . Empty ) ;
77
-
78
- // Test that "dotnet build" still routes to SDK, not to the file
79
- TestContext . BuiltDotNet . Exec ( "build" )
80
- . WorkingDirectory ( sharedTestState . BaseDirectory . Location )
81
- . EnableTracingAndCaptureOutputs ( )
82
- . Execute ( )
83
- . Should ( ) . Fail ( )
84
- . And . HaveStdErrContaining ( "The command could not be loaded, possibly because:" ) // This is a generic error for when we can't tell what exactly the user intended to do
85
- . And . HaveStdErrContaining ( "Resolving SDKs" ) ;
86
- }
87
-
88
- [ Fact ]
89
- public void RelativePathToNonManagedFile_ShowsSpecificError ( )
90
- {
91
- // Test relative path with directory separator
92
- Directory . CreateDirectory ( Path . Combine ( sharedTestState . BaseDirectory . Location , "subdir" ) ) ;
93
- string testFile = Path . Combine ( sharedTestState . BaseDirectory . Location , "subdir" , "test.json" ) ;
94
- File . WriteAllText ( testFile , "{}" ) ;
95
-
96
- string relativePath = Path . GetRelativePath ( sharedTestState . BaseDirectory . Location , testFile ) ;
97
- TestContext . BuiltDotNet . Exec ( relativePath )
98
- . WorkingDirectory ( sharedTestState . BaseDirectory . Location )
99
- . CaptureStdOut ( )
100
- . CaptureStdErr ( )
101
- . Execute ( )
102
- . Should ( ) . Fail ( )
103
- . And . HaveStdErrContaining ( $ "The application '{ relativePath } ' is not a managed .dll.") ;
104
- }
105
-
106
71
[ Fact ]
107
72
public void InvalidFileOrCommand_NoSDK_ListsPossibleIssues ( )
108
73
{
0 commit comments