コード例 #1
0
            public void Should_Use_64_Bit_Platform_If_Specified()
            {
                // Given
                var context = UnityPlatformFixture.CreateContext();
                var builder = new ProcessArgumentBuilder();
                var platform = new WindowsPlatform("C:/Project/Game.exe") { PlatformTarget = UnityPlatformTarget.x64 };

                // When
                platform.BuildArguments(context, builder);

                // Then
                Assert.Equal("-buildWindows64Player \"C:/Project/Game.exe\"", builder.Render());
            }
コード例 #2
0
            public void Should_Make_Project_Path_Absolute()
            {
                // Given
                var context = UnityPlatformFixture.CreateContext();
                var builder = new ProcessArgumentBuilder();
                var platform = new WindowsPlatform("Project/Game.exe");

                // When
                platform.BuildArguments(context, builder);

                // Then
                Assert.Equal("-buildWindowsPlayer \"/Working/Project/Game.exe\"", builder.Render());
            }
コード例 #3
0
            public void Should_Add_NoGraphics_Switch_If_Specified()
            {
                // Given
                var context = UnityPlatformFixture.CreateContext();
                var builder = new ProcessArgumentBuilder();
                var platform = new WindowsPlatform("C:/Project/Game.exe");
                platform.NoGraphics = true;

                // When
                platform.BuildArguments(context, builder);

                // Then
                Assert.Equal("-nographics -buildWindowsPlayer \"C:/Project/Game.exe\"", builder.Render());
            }