mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Split GameState processing logic out of ClientGameStateManager into the new GameStateProcessor class. * Adds a test fixture for GameStateProcessor with a basic use test. * More unit tests and added Extrapolated property to GameStateProcessor.
206 lines
14 KiB
XML
206 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props" Condition="Exists('$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props')" />
|
|
<Import Project="$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props" Condition="Exists('$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props')" />
|
|
<Import Project="$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.7.0\build\net45\Microsoft.Net.Test.Sdk.props" Condition="Exists('$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.7.0\build\net45\Microsoft.Net.Test.Sdk.props')" />
|
|
<Import Project="$(SolutionDir)packages\NUnit.3.10.1\build\NUnit.props" Condition="Exists('$(SolutionDir)packages\NUnit.3.10.1\build\NUnit.props')" />
|
|
<Import Project="$(SolutionDir)packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props" Condition="Exists('$(SolutionDir)packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props')" />
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
|
|
<ProjectGuid>{F0ADA779-40B8-4F7E-BA6C-CDB19F3065D9}</ProjectGuid>
|
|
<OutputType>Library</OutputType>
|
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
<RootNamespace>Robust.UnitTesting</RootNamespace>
|
|
<AssemblyName>Robust.UnitTesting</AssemblyName>
|
|
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
|
|
<FileAlignment>512</FileAlignment>
|
|
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
|
<IsCodedUITest>False</IsCodedUITest>
|
|
<TestProjectType>UnitTest</TestProjectType>
|
|
<TargetFrameworkProfile />
|
|
<NoWarn>0649</NoWarn>
|
|
<OutputPath>..\bin\UnitTesting\</OutputPath>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<Optimize>false</Optimize>
|
|
<NuGetPackageImportStamp>
|
|
</NuGetPackageImportStamp>
|
|
<LangVersion>7.2</LangVersion>
|
|
<Godot>true</Godot>
|
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>portable</DebugType>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>portable</DebugType>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<DebugType>portable</DebugType>
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Castle.Core" Version="4.3.1" />
|
|
<PackageReference Include="JetBrains.Annotations" Version="2018.2.1" />
|
|
<PackageReference Include="Microsoft.CodeCoverage" Version="15.8.0" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
|
|
<PackageReference Include="Moq" Version="4.10.0" />
|
|
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
|
<PackageReference Include="NUnit" Version="3.11.0" />
|
|
<PackageReference Include="NUnit.ConsoleRunner" Version="3.10.0" />
|
|
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
|
|
<PackageReference Include="Smocks.ExtensionPackage">
|
|
<Version>0.7.5-beta2</Version>
|
|
</PackageReference>
|
|
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2" />
|
|
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.1" />
|
|
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
|
<PackageReference Include="YamlDotNet" Version="5.0.1" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Configuration" />
|
|
<Reference Include="System.Drawing" />
|
|
<Reference Include="GodotSharp" Condition="Exists('..\Robust.Client.Godot\.mono\assemblies\GodotSharp.dll')">
|
|
<HintPath>..\Robust.Client.Godot\.mono\assemblies\GodotSharp.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="GodotSharp" Condition="!Exists('..\Robust.Client.Godot\.mono\assemblies\GodotSharp.dll')">
|
|
<HintPath>..\Dependencies\godot\GodotSharp.dll</HintPath>
|
|
</Reference>
|
|
</ItemGroup>
|
|
<Choose>
|
|
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
|
|
<ItemGroup>
|
|
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
|
</ItemGroup>
|
|
</When>
|
|
<Otherwise />
|
|
</Choose>
|
|
<ItemGroup>
|
|
<Compile Include="ApproxEqualityConstraint.cs" />
|
|
<Compile Include="Client\GameObjects\Components\Transform_Test.cs" />
|
|
<Compile Include="Client\GameControllerProxyDummy.cs" />
|
|
<Compile Include="Client\GameStates\GameStateProcessor_Tests.cs" />
|
|
<Compile Include="Client\Graphics\StyleBoxTest.cs" />
|
|
<Compile Include="Client\Graphics\TextureLoadParametersTest.cs" />
|
|
<Compile Include="Client\UserInterface\Controls\BoxContainerTest.cs" />
|
|
<Compile Include="Client\UserInterface\Controls\CenterContainerTest.cs" />
|
|
<Compile Include="Client\UserInterface\Controls\GridContainerTest.cs" />
|
|
<Compile Include="Client\UserInterface\ControlTest.cs" />
|
|
<Compile Include="Client\UserInterface\StylesheetTest.cs" />
|
|
<Compile Include="Client\UserInterface\UserInterfaceManagerTest.cs" />
|
|
<Compile Include="Client\Utility\GodotConversionsTest.cs" />
|
|
<Compile Include="Client\Utility\GodotParserTest.cs" />
|
|
<Compile Include="Client\Utility\GodotPathUtilityTest.cs" />
|
|
<Compile Include="LogCatcher.cs" />
|
|
<Compile Include="Server\GameObjects\Components\Container_Test.cs" />
|
|
<Compile Include="Server\GameObjects\Components\Transform_Test.cs" />
|
|
<Compile Include="Shared\ContentPack\ResourceManagerTest.cs" />
|
|
<Compile Include="Shared\GameObjects\ComponentManager_Test.cs" />
|
|
<Compile Include="Shared\GameObjects\EntityState_Tests.cs" />
|
|
<Compile Include="Shared\IoC\IoCManager_Test.cs" />
|
|
<Compile Include="Shared\Map\MapChunk_Tests.cs" />
|
|
<Compile Include="Shared\Map\MapGrid_Tests.cs" />
|
|
<Compile Include="Shared\Maths\Angle_Test.cs" />
|
|
<Compile Include="Shared\Maths\Box2i_Test.cs" />
|
|
<Compile Include="Shared\Maths\UIBox2i_Test.cs" />
|
|
<Compile Include="Shared\Maths\Box2_Test.cs" />
|
|
<Compile Include="Shared\Maths\UIBox2_Test.cs" />
|
|
<Compile Include="Shared\Maths\Circle_Test.cs" />
|
|
<Compile Include="Shared\Maths\Color_Test.cs" />
|
|
<Compile Include="Shared\Maths\Matrix3_Test.cs" />
|
|
<Compile Include="Shared\Maths\Ray_Test.cs" />
|
|
<Compile Include="Shared\Maths\Vector2u_Test.cs" />
|
|
<Compile Include="Shared\Maths\Vector2_Test.cs" />
|
|
<Compile Include="Shared\Maths\Direction_Test.cs" />
|
|
<Compile Include="Shared\Physics\CollisionManager_Test.cs" />
|
|
<Compile Include="Shared\Prototypes\PrototypeManager_Test.cs" />
|
|
<Compile Include="Shared\Reflection\ReflectionManager_Test.cs" />
|
|
<Compile Include="Shared\Serialization\NetSerializableAttribute_Test.cs" />
|
|
<Compile Include="Shared\Timers\TimerTest.cs" />
|
|
<Compile Include="Shared\Timing\GameLoop_Test.cs" />
|
|
<Compile Include="Shared\Timing\GameTiming_Test.cs" />
|
|
<Compile Include="Shared\Utility\CollectionExtensions_Test.cs" />
|
|
<Compile Include="Shared\Utility\ResourcePath_Test.cs" />
|
|
<Compile Include="Shared\Utility\TypeHelpers_Test.cs" />
|
|
<Compile Include="Shared\Utility\YamlHelpers_Test.cs" />
|
|
<Compile Include="Shared\ColorUtils_Test.cs" />
|
|
<Compile Include="RobustUnitTest.cs" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Robust.Client\Robust.Client.csproj">
|
|
<Project>{83429bd6-6358-4b18-be51-401df8ea2673}</Project>
|
|
<Name>Robust.Client</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\Robust.Server\Robust.Server.csproj">
|
|
<Project>{b04aae71-0000-0000-0000-000000000000}</Project>
|
|
<Name>Robust.Server</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\Robust.Shared.Maths\Robust.Shared.Maths.csproj">
|
|
<Project>{93f23a82-00c5-4572-964e-e7c9457726d4}</Project>
|
|
<Name>Robust.Shared.Maths</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\Robust.Shared\Robust.Shared.csproj">
|
|
<Project>{0529f740-0000-0000-0000-000000000000}</Project>
|
|
<Name>Robust.Shared</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="app.config" />
|
|
<Compile Include="Shared\Serialization\YamlObjectSerializer_Test.cs" />
|
|
<Compile Include="Shared\Utility\MathHelper_Test.cs" />
|
|
</ItemGroup>
|
|
<Choose>
|
|
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
|
|
<ItemGroup>
|
|
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
<Private>False</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
</When>
|
|
</Choose>
|
|
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
<Import Project="..\MSBuild\Robust.Engine.targets" />
|
|
<PropertyGroup>
|
|
<DefineConstants Condition="'$(HEADLESS)'!=''">$(DefineConstants);HEADLESS</DefineConstants>
|
|
</PropertyGroup>
|
|
<Target Name="AfterBuild" DependsOnTargets="CopyResourcesFromShared" />
|
|
<!--
|
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
|
<PropertyGroup>
|
|
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
|
</PropertyGroup>
|
|
<Error Condition="!Exists('$(SolutionDir)packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props'))" />
|
|
<Error Condition="!Exists('$(SolutionDir)packages\NUnit.3.10.1\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\NUnit.3.10.1\build\NUnit.props'))" />
|
|
<Error Condition="!Exists('$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props'))" />
|
|
<Error Condition="!Exists('$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets'))" />
|
|
<Error Condition="!Exists('$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props'))" />
|
|
<Error Condition="!Exists('$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets'))" />
|
|
</Target>
|
|
<Import Project="$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets" Condition="Exists('$(SolutionDir)packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets')" />
|
|
<Import Project="$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets" Condition="Exists('$(SolutionDir)packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets')" />
|
|
-->
|
|
</Project> |