diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-08 14:02:08 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-08 14:02:08 -0400 |
commit | af1a2bde8219c5d4b8660b13702725626a4a5647 (patch) | |
tree | a18bf2227299276604124b6a243ccda84d0413a2 /src/StardewModdingAPI.Tests | |
parent | 8df1ab7e1102dedf744e799af2cede560893c92a (diff) | |
parent | 23951220ae84f3132832c942b61a8e81aee1fbfe (diff) | |
download | SMAPI-af1a2bde8219c5d4b8660b13702725626a4a5647.tar.gz SMAPI-af1a2bde8219c5d4b8660b13702725626a4a5647.tar.bz2 SMAPI-af1a2bde8219c5d4b8660b13702725626a4a5647.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI.Tests')
-rw-r--r-- | src/StardewModdingAPI.Tests/Utilities/SDateTests.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/StardewModdingAPI.Tests/Utilities/SDateTests.cs b/src/StardewModdingAPI.Tests/Utilities/SDateTests.cs index 714756e0..25acbaf3 100644 --- a/src/StardewModdingAPI.Tests/Utilities/SDateTests.cs +++ b/src/StardewModdingAPI.Tests/Utilities/SDateTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -104,6 +104,8 @@ namespace StardewModdingAPI.Tests.Utilities [TestCase("15 summer Y1", -28, ExpectedResult = "15 spring Y1")] // negative season transition [TestCase("15 summer Y2", -28 * 4, ExpectedResult = "15 summer Y1")] // negative year transition [TestCase("01 spring Y3", -(28 * 7 + 17), ExpectedResult = "12 spring Y1")] // negative year transition + [TestCase("06 fall Y2", 50, ExpectedResult = "28 winter Y3")] // test for zero-index errors + [TestCase("06 fall Y2", 51, ExpectedResult = "01 spring Y3")] // test for zero-index errors public string AddDays(string dateStr, int addDays) { return this.GetDate(dateStr).AddDays(addDays).ToString(); |