unit test fixes

This commit is contained in:
2022-04-14 20:07:49 +03:00
parent 377f6d1bf7
commit f26f54eae0
4 changed files with 10 additions and 2 deletions

View File

@@ -245,6 +245,8 @@ namespace Cabrito
var rootlocation = rootControl.Control.Location;
rootlocation.Y = -rootControl.Control.Height;
rootControl.Control.Location = rootlocation;
Console.Print("Renderer: " + GPUDevice.Instance.RendererType);
}
private void OnSendLog(LogType level, string msg, FlaxEngine.Object obj, string stackTrace)

View File

@@ -14,7 +14,6 @@ namespace Cabrito
[ConsoleSubsystemInitializer]
public static void Initialize()
{
Console.Print("Renderer: " + GPUDevice.Instance.RendererType);
}
[ConsoleCommand("quit", "exit")]

View File

@@ -26,7 +26,6 @@ public class GoakeTestsTarget : Target
TargetConfiguration.Debug,
TargetConfiguration.Release,
};*/
Modules.Add("Game");
CustomExternalProjectFilePath = System.IO.Path.Combine("Tests/GoakeTests.csproj");
}

View File

@@ -7,6 +7,10 @@
<TargetFrameworks>net48;net5.0;net5.0-windows;net6.0;net6.0-windows</TargetFrameworks>
<IsPublishable>False</IsPublishable>
<Configurations>Editor.Windows.Development;Game.Windows.Development</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0|AnyCPU'">
@@ -25,6 +29,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Game.Windows.Development' ">
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="NUnit" Version="3.13.1" />