Skip to content

Commit 8fa7b38

Browse files
committed
Remove game plugin and move code to editor assembly
1 parent 189cae8 commit 8fa7b38

File tree

7 files changed

+8
-37
lines changed

7 files changed

+8
-37
lines changed

Source/Assert.cs renamed to Source/Editor/Assert.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace FlaxCommunity.UnitTesting
3+
namespace FlaxCommunity.UnitTesting.Editor
44
{
55
/// <summary>
66
/// Special type of exception that is used to terminate the test case early <seealso cref="Assert.Pass"/>

Source/ExampleClass.cs renamed to Source/Editor/ExampleClass.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if !FLAX_PLUGIN
2-
using FlaxCommunity.UnitTesting;
2+
using FlaxCommunity.UnitTesting.Editor;
33

4-
namespace UnitTests
4+
namespace UnitTests.Editor
55
{
66
[TestFixture]
77
internal class SimpleTests

Source/TestAttributes.cs renamed to Source/Editor/TestAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace FlaxCommunity.UnitTesting
3+
namespace FlaxCommunity.UnitTesting.Editor
44
{
55
/// <summary>
66
/// A test case

Source/Editor/TestRunner.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ public class TestRunner : EditorPlugin
2727
Version = new Version(1, 1),
2828
RepositoryUrl = "https://github.com/FlaxCommunityProjects/FlaxUnitTesting"
2929
};
30-
31-
public override Type GamePluginType => typeof(SimpleUnitTestingPlugin);
32-
30+
3331
public override void InitializeEditor()
3432
{
3533
base.InitializeEditor();

Source/SimpleUnitTestingPlugin.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

UnitTests.Editor.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
</ItemGroup>
6060
<ItemGroup>
6161
<Compile Include="Cache\AssemblyInfo.cs" />
62+
<Compile Include="Source\Editor\Assert.cs" />
63+
<Compile Include="Source\Editor\ExampleClass.cs" />
64+
<Compile Include="Source\Editor\TestAttributes.cs" />
6265
<Compile Include="Source\Editor\TestRunner.cs" />
6366
</ItemGroup>
6467
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

UnitTests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
</Reference>
5353
</ItemGroup>
5454
<ItemGroup>
55-
<Compile Include="Source\Assert.cs" />
56-
<Compile Include="Source\ExampleClass.cs" />
57-
<Compile Include="Source\SimpleUnitTestingPlugin.cs" />
58-
<Compile Include="Source\TestAttributes.cs" />
5955
<Compile Include="Cache\AssemblyInfo.cs" />
6056
</ItemGroup>
6157
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

0 commit comments

Comments
 (0)