Exemplo n.º 1
0
        public void ProvidingNotExistingAssemblyShouldFail()
        {
            const string arguments = "qa some.dll";
            int          exitCode  = MigrateProcess.Execute(arguments);

#if NET462
            Assert.AreEqual(MigSharp.Migrate.Program.FailedMigrationExitCode, exitCode);
#elif NETCOREAPP2_0
            Assert.AreEqual(Cli.Program.FailedMigrationExitCode, exitCode);
#endif
        }
Exemplo n.º 2
0
        public void ProvidingNotExistingTargetShouldFail()
        {
            const string arguments = "target-xxx some.dll";
            int          exitCode  = MigrateProcess.Execute(arguments);

#if NET462
            Assert.AreEqual(MigSharp.Migrate.Program.InvalidTargetExitCode, exitCode);
#elif NETCOREAPP2_0
            Assert.AreEqual(Cli.Program.InvalidTargetExitCode, exitCode);
#endif
        }