summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-06-18 22:16:51 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-06-18 22:16:51 -0400
commitec914874eca7d7f12e4d1fa1cabaf8275fa8a50b (patch)
tree0e2317e42090e22d792ff4d6a26840e5f51d861e /src
parentfb8fefea00aacd603e68fbdbaecd27e4c451cc82 (diff)
downloadSMAPI-ec914874eca7d7f12e4d1fa1cabaf8275fa8a50b.tar.gz
SMAPI-ec914874eca7d7f12e4d1fa1cabaf8275fa8a50b.tar.bz2
SMAPI-ec914874eca7d7f12e4d1fa1cabaf8275fa8a50b.zip
reorganise unit tests
Diffstat (limited to 'src')
-rw-r--r--src/StardewModdingAPI.Tests/Core/ModResolverTests.cs (renamed from src/StardewModdingAPI.Tests/ModResolverTests.cs)5
-rw-r--r--src/StardewModdingAPI.Tests/Core/TranslationTests.cs (renamed from src/StardewModdingAPI.Tests/TranslationTests.cs)2
-rw-r--r--src/StardewModdingAPI.Tests/Sample.cs (renamed from src/StardewModdingAPI.Tests/Framework/Sample.cs)2
-rw-r--r--src/StardewModdingAPI.Tests/StardewModdingAPI.Tests.csproj8
-rw-r--r--src/StardewModdingAPI.Tests/Utilities/SDateTests.cs (renamed from src/StardewModdingAPI.Tests/SDateTests.cs)2
5 files changed, 9 insertions, 10 deletions
diff --git a/src/StardewModdingAPI.Tests/ModResolverTests.cs b/src/StardewModdingAPI.Tests/Core/ModResolverTests.cs
index 4afba162..efb1c348 100644
--- a/src/StardewModdingAPI.Tests/ModResolverTests.cs
+++ b/src/StardewModdingAPI.Tests/Core/ModResolverTests.cs
@@ -9,9 +9,8 @@ using StardewModdingAPI.Framework;
using StardewModdingAPI.Framework.Models;
using StardewModdingAPI.Framework.ModLoading;
using StardewModdingAPI.Framework.Serialisation;
-using StardewModdingAPI.Tests.Framework;
-namespace StardewModdingAPI.Tests
+namespace StardewModdingAPI.Tests.Core
{
/// <summary>Unit tests for <see cref="ModResolver"/>.</summary>
[TestFixture]
@@ -378,7 +377,7 @@ namespace StardewModdingAPI.Tests
Assert.AreSame(modB.Object, mods[2], "The load order is incorrect: mod B should be third since it needs mod A, and is needed by mod C.");
Assert.AreSame(modC.Object, mods[3], "The load order is incorrect: mod C should be fourth since it needs mod B, and is needed by mod D.");
}
-
+
[Test(Description = "Assert that dependencies are failed if they don't meet the minimum version.")]
public void ProcessDependencies_WithMinVersions_FailsIfNotMet()
{
diff --git a/src/StardewModdingAPI.Tests/TranslationTests.cs b/src/StardewModdingAPI.Tests/Core/TranslationTests.cs
index 157a08a2..ce3431e4 100644
--- a/src/StardewModdingAPI.Tests/TranslationTests.cs
+++ b/src/StardewModdingAPI.Tests/Core/TranslationTests.cs
@@ -5,7 +5,7 @@ using NUnit.Framework;
using StardewModdingAPI.Framework;
using StardewValley;
-namespace StardewModdingAPI.Tests
+namespace StardewModdingAPI.Tests.Core
{
/// <summary>Unit tests for <see cref="TranslationHelper"/> and <see cref="Translation"/>.</summary>
[TestFixture]
diff --git a/src/StardewModdingAPI.Tests/Framework/Sample.cs b/src/StardewModdingAPI.Tests/Sample.cs
index 10006f1e..99835d92 100644
--- a/src/StardewModdingAPI.Tests/Framework/Sample.cs
+++ b/src/StardewModdingAPI.Tests/Sample.cs
@@ -1,6 +1,6 @@
using System;
-namespace StardewModdingAPI.Tests.Framework
+namespace StardewModdingAPI.Tests
{
/// <summary>Provides sample values for unit testing.</summary>
internal static class Sample
diff --git a/src/StardewModdingAPI.Tests/StardewModdingAPI.Tests.csproj b/src/StardewModdingAPI.Tests/StardewModdingAPI.Tests.csproj
index a50d23b3..f626eb08 100644
--- a/src/StardewModdingAPI.Tests/StardewModdingAPI.Tests.csproj
+++ b/src/StardewModdingAPI.Tests/StardewModdingAPI.Tests.csproj
@@ -51,11 +51,11 @@
<Compile Include="..\GlobalAssemblyInfo.cs">
<Link>Properties\GlobalAssemblyInfo.cs</Link>
</Compile>
- <Compile Include="SDateTests.cs" />
- <Compile Include="TranslationTests.cs" />
- <Compile Include="ModResolverTests.cs" />
+ <Compile Include="Utilities\SDateTests.cs" />
+ <Compile Include="Core\TranslationTests.cs" />
+ <Compile Include="Core\ModResolverTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Framework\Sample.cs" />
+ <Compile Include="Sample.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
diff --git a/src/StardewModdingAPI.Tests/SDateTests.cs b/src/StardewModdingAPI.Tests/Utilities/SDateTests.cs
index fa898918..714756e0 100644
--- a/src/StardewModdingAPI.Tests/SDateTests.cs
+++ b/src/StardewModdingAPI.Tests/Utilities/SDateTests.cs
@@ -6,7 +6,7 @@ using System.Text.RegularExpressions;
using NUnit.Framework;
using StardewModdingAPI.Utilities;
-namespace StardewModdingAPI.Tests
+namespace StardewModdingAPI.Tests.Utilities
{
/// <summary>Unit tests for <see cref="SDate"/>.</summary>
[TestFixture]