Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 2dec739

Browse files
committed
Add unit test solution
1 parent bdc13bd commit 2dec739

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

ModLoader.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.29709.97
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModLoader", "ModLoader\ModLoader.csproj", "{3BB62E16-1126-4ED9-AF39-64B88C642B14}"
77
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModloaderTests", "ModloaderTests\ModloaderTests.csproj", "{D8E7EDBC-B900-4351-ACD6-050C52388C05}"
9+
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
1517
{3BB62E16-1126-4ED9-AF39-64B88C642B14}.Debug|Any CPU.Build.0 = Debug|Any CPU
1618
{3BB62E16-1126-4ED9-AF39-64B88C642B14}.Release|Any CPU.ActiveCfg = Release|Any CPU
1719
{3BB62E16-1126-4ED9-AF39-64B88C642B14}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{D8E7EDBC-B900-4351-ACD6-050C52388C05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{D8E7EDBC-B900-4351-ACD6-050C52388C05}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{D8E7EDBC-B900-4351-ACD6-050C52388C05}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{D8E7EDBC-B900-4351-ACD6-050C52388C05}.Release|Any CPU.Build.0 = Release|Any CPU
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

ModloaderTests/LoaderTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using ModLoader;
2+
using NUnit.Framework;
3+
4+
namespace ModloaderTests
5+
{
6+
public class LoaderTests
7+
{
8+
private Loader loader;
9+
private SFSModDependencie[] dependencies;
10+
11+
[SetUp]
12+
public void Setup()
13+
{
14+
this.loader = new Loader();
15+
}
16+
17+
[Test]
18+
public void Test1()
19+
{
20+
21+
Assert.Pass();
22+
}
23+
}
24+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
6+
<IsPackable>false</IsPackable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="nunit" Version="3.12.0" />
11+
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<ProjectReference Include="..\ModLoader\ModLoader.csproj" />
17+
</ItemGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)