예제 #1
0
        public void PublishWithRuntimeIdentifier_with_MSBuildProp_Test(string rid, string driverFileName, ExecutableFile.Format executableFileFormat)
        {
            var exitCode = Shell.Run(WorkDir, "dotnet", "publish", "-r", rid, "-o", "out", "-p:PublishChromeDriver=true");

            exitCode.Is(0);

            var driverFullPath = Path.Combine(WorkDir, "out", driverFileName);

            File.Exists(driverFullPath).IsTrue();

            ExecutableFile.DetectFormat(driverFullPath).Is(executableFileFormat);
        }
예제 #2
0
        public void PublishWithRuntimeIdentifier_with_DefineConstants_Test(string rid, string driverFileName, ExecutableFile.Format executableFileFormat)
        {
            var exitCode = Shell.Run(WorkDir, "dotnet", "publish", "-r", rid, "-o", "out", "-p:DefineConstants=_PUBLISH_CHROMEDRIVER");

            exitCode.Is(0);

            var driverFullPath = Path.Combine(WorkDir, "out", driverFileName);

            File.Exists(driverFullPath).IsTrue();

            ExecutableFile.DetectFormat(driverFullPath).Is(executableFileFormat);
        }
예제 #3
0
        public void BuildWithRuntimeIdentifier_Test(string rid, string driverFileName, ExecutableFile.Format executableFileFormat)
        {
            var exitCode = Shell.Run(WorkDir, "dotnet", "build", "-r", rid, "-o", "out");

            exitCode.Is(0);

            var driverFullPath = Path.Combine(WorkDir, "out", driverFileName);

            File.Exists(driverFullPath).IsTrue();

            ExecutableFile.DetectFormat(driverFullPath).Is(executableFileFormat);
        }