forked from donkeyProgramming/TheAssetEditor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5bbb30
commit e21d622
Showing
6 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Testing/Shared.Core.Test/PackFiles/FileSaveServiceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Shared.Core.Test.PackFiles | ||
{ | ||
internal class FileSaveServiceTests | ||
{ | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Testing/Shared.Core.Test/PackFiles/PackFileContainerLoaderTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Shared.Core.Test.PackFiles | ||
{ | ||
internal class PackFileContainerLoaderTests | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using Moq; | ||
using Shared.Core.Events; | ||
using Shared.Core.PackFiles; | ||
using Shared.Core.PackFiles.Models; | ||
|
||
namespace Shared.Core.Test.PackFiles | ||
{ | ||
internal class PackFileServiceTest | ||
{ | ||
|
||
|
||
[Test] | ||
public void AddContainer_CaPackFile() | ||
{ | ||
// Arrenge | ||
var eventHub = new Mock<IGlobalEventHub>(); | ||
var pfs = new PackFileService(eventHub.Object); | ||
var container = new PackFileContainer("MyTest"); | ||
container.SystemFilePath = "SystemPath"; | ||
container.IsCaPackFile = true; | ||
|
||
// Act | ||
pfs.AddContainer(container); | ||
|
||
// Assert | ||
|
||
} | ||
|
||
// public void AddContainer_CaPackNotSetFile() | ||
// public void AddContainers_Duplicate() | ||
// public void AddContainers_NotDuplicate() | ||
|
||
|
||
|
||
//CreateNewPackFileContainer | ||
|
||
// AddFilesToPack | ||
|
||
// CopyFileFromOtherPackFile | ||
|
||
// SetEditablePack | ||
|
||
// UnloadPackContainer | ||
|
||
// SaveFile | ||
|
||
// SavePackContainer | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net9.0-windows</TargetFramework> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="coverlet.collector" Version="6.0.2" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" /> | ||
<PackageReference Include="NUnit" Version="4.2.2" /> | ||
<PackageReference Include="NUnit.Analyzers" Version="4.3.0" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Shared\SharedCore\Shared.Core.csproj" /> | ||
<ProjectReference Include="..\Shared\Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="NUnit.Framework" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Shared.Core.Test | ||
{ | ||
public class Tests | ||
{ | ||
[SetUp] | ||
public void Setup() | ||
{ | ||
} | ||
|
||
[Test] | ||
public void Test1() | ||
{ | ||
Assert.Pass(); | ||
} | ||
} | ||
} |