Exemplo n.º 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());
            }
Exemplo n.º 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());
            }
Exemplo n.º 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());
            }