summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Tests
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 00:23:48 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 00:23:48 -0400
commit0863f9b7e5f165f2b1db8750b20ed35bc0c3701a (patch)
tree30f7f83e6c699c03081067b01b3fd62a2846e6fc /src/StardewModdingAPI.Tests
parent33af789e2eb4da101cead531b77c29ecf4933549 (diff)
downloadSMAPI-0863f9b7e5f165f2b1db8750b20ed35bc0c3701a.tar.gz
SMAPI-0863f9b7e5f165f2b1db8750b20ed35bc0c3701a.tar.bz2
SMAPI-0863f9b7e5f165f2b1db8750b20ed35bc0c3701a.zip
revamp mod compatibility fields to allow broader use of mod data records (#361)
Diffstat (limited to 'src/StardewModdingAPI.Tests')
-rw-r--r--src/StardewModdingAPI.Tests/Core/ModResolverTests.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/StardewModdingAPI.Tests/Core/ModResolverTests.cs b/src/StardewModdingAPI.Tests/Core/ModResolverTests.cs
index 4dbd1438..2d65eee9 100644
--- a/src/StardewModdingAPI.Tests/Core/ModResolverTests.cs
+++ b/src/StardewModdingAPI.Tests/Core/ModResolverTests.cs
@@ -141,7 +141,11 @@ namespace StardewModdingAPI.Tests.Core
{
// arrange
Mock<IModMetadata> mock = this.GetMetadata("Mod A", new string[0], allowStatusChange: true);
- this.SetupMetadataForValidation(mock, new ModDataRecord { Status = ModStatus.AssumeBroken, UpperVersion = new SemanticVersion("1.0"), UpdateUrls = new[] { "http://example.org" } });
+ this.SetupMetadataForValidation(mock, new ModDataRecord
+ {
+ Compatibility = new[] { new ModCompatibility("~1.0", ModStatus.AssumeBroken, null) },
+ UpdateUrls = new[] { "http://example.org" }
+ });
// act
new ModResolver().ValidateManifests(new[] { mock.Object }, apiVersion: new SemanticVersion("1.0"));