public void Unsupported_MigrationsOnNetCoreClassLibrary()
        {
            var targetProject = Path.Combine(_fixture.TestProjectRoot, "NetStandardClassLibrary/project.json");

            _fixture.InstallTool(targetProject, _output, _fixture.TestProjectRoot);

            var result = new MigrationAddCommand(targetProject, "Initial", _output)
                         .ExecuteWithCapturedOutput();

            AssertCommand.Fail(result);
            Assert.Contains("does not support", result.StdErr);
        }
        public void Unsupported_MigrationsOnDesktopClassLibrary()
        {
            if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                return;
            }

            var targetProject = Path.Combine(_fixture.TestProjectRoot, "DesktopClassLibrary/project.json");

            _fixture.InstallTool(targetProject, _output, _fixture.TestProjectRoot);

            var result = new MigrationAddCommand(targetProject, "Initial", _output)
                         .ExecuteWithCapturedOutput();

            AssertCommand.Fail(result);
            Assert.Contains("does not support", result.StdErr);
        }
        public void Unsupported_MigrationsOnDesktopClassLibrary()
        {
            if (!PlatformServices.Default.Runtime.OperatingSystem.Equals("Windows", StringComparison.OrdinalIgnoreCase))
            {
                return;
            }

            var targetProject = Path.Combine(_fixture.TestProjectRoot, "DesktopClassLibrary/project.json");

            _fixture.InstallTool(targetProject, _output, _fixture.TestProjectRoot);

            var result = new MigrationAddCommand(targetProject, "Initial", _output)
                         .ExecuteWithCapturedOutput();

            AssertCommand.Fail(result);
            Assert.Contains("does not support", result.StdErr);
        }