Skip to content

Commit 5134534

Browse files
committed
Add initial tests
1 parent 3997bee commit 5134534

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

Civ2clone.sln

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core", "Engine\Core.csproj"
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RaylibUtils", "RaylibUtils\RaylibUtils.csproj", "{987C570F-A83B-4A7E-88D2-9D32B5741FA0}"
2121
EndProject
22+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{628763FB-2A90-4D53-8DEE-684EDCF78631}"
23+
EndProject
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Engine.Tests", "Tests\Engine.Tests\Engine.Tests.csproj", "{3A7A77F7-7561-43D9-9C1C-AC11CEC8229B}"
25+
EndProject
2226
Global
2327
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2428
Debug|Any CPU = Debug|Any CPU
@@ -56,11 +60,18 @@ Global
5660
{987C570F-A83B-4A7E-88D2-9D32B5741FA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
5761
{987C570F-A83B-4A7E-88D2-9D32B5741FA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
5862
{987C570F-A83B-4A7E-88D2-9D32B5741FA0}.Release|Any CPU.Build.0 = Release|Any CPU
63+
{3A7A77F7-7561-43D9-9C1C-AC11CEC8229B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
64+
{3A7A77F7-7561-43D9-9C1C-AC11CEC8229B}.Debug|Any CPU.Build.0 = Debug|Any CPU
65+
{3A7A77F7-7561-43D9-9C1C-AC11CEC8229B}.Release|Any CPU.ActiveCfg = Release|Any CPU
66+
{3A7A77F7-7561-43D9-9C1C-AC11CEC8229B}.Release|Any CPU.Build.0 = Release|Any CPU
5967
EndGlobalSection
6068
GlobalSection(SolutionProperties) = preSolution
6169
HideSolutionNode = FALSE
6270
EndGlobalSection
6371
GlobalSection(ExtensibilityGlobals) = postSolution
6472
SolutionGuid = {3B3EEBF5-6AFF-46F4-964E-587BC942AF86}
6573
EndGlobalSection
74+
GlobalSection(NestedProjects) = preSolution
75+
{3A7A77F7-7561-43D9-9C1C-AC11CEC8229B} = {628763FB-2A90-4D53-8DEE-684EDCF78631}
76+
EndGlobalSection
6677
EndGlobal
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<IsPackable>false</IsPackable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="coverlet.collector" Version="6.0.2" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
13+
<PackageReference Include="xunit" Version="2.9.2" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<ProjectReference Include="..\..\Engine\Core.csproj" />
19+
</ItemGroup>
20+
21+
<ItemGroup>
22+
<Using Include="Xunit" />
23+
</ItemGroup>
24+
25+
</Project>

Tests/Engine.Tests/LoadGameTests.cs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
namespace Engine.Tests;
2+
3+
public class LoadGameTests
4+
{
5+
// [Fact]
6+
// public void TestLoadFrom()
7+
// {
8+
// // Arrange
9+
// var path = "path/to/test/savefile.sav";
10+
// var mainApp = new MockMainApp();
11+
12+
// // Act
13+
// //var result = LoadGame.LoadFrom(path, mainApp);
14+
15+
// // Assert
16+
// Assert.NotNull(result);
17+
// // Add more assertions as needed
18+
// }
19+
20+
[Fact]
21+
public void Test()
22+
{
23+
Assert.Fail("Test not yet implemented");
24+
}
25+
}

0 commit comments

Comments
 (0)