Unverified Commit f712fecd authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Migrate visual_studio to null safety (#78942)

parent c49cd271
......@@ -342,6 +342,18 @@ void setNoViableToolchainInstallation(
void main() {
group('Visual Studio', () {
testWithoutContext('isInstalled throws when PROGRAMFILES(X86) env not set', () {
final VisualStudio visualStudio = VisualStudio(
logger: BufferLogger.test(),
fileSystem: MemoryFileSystem.test(style: FileSystemStyle.windows),
platform: FakePlatform(operatingSystem: 'windows'),
processManager: FakeProcessManager.any(),
);
expect(() => visualStudio.isInstalled,
throwsToolExit(message: '%PROGRAMFILES(X86)% environment variable not found'));
});
testWithoutContext('isInstalled and cmakePath correct when vswhere is missing', () {
final FileSystem fileSystem = MemoryFileSystem.test(style: FileSystemStyle.windows);
const Exception exception = ProcessException('vswhere', <String>[]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment