diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-10 18:22:34 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-10 18:22:34 -0400 |
commit | 35c2e5968579ea578cf04e7550ab43bc5a4b8074 (patch) | |
tree | e72d14fdbc81041a16d788a39a45532f5286b301 /src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/StardewValley/Object.cs | |
parent | 9e5c3912b6cfce0348aa2d88d30a11fe5b410e9c (diff) | |
download | SMAPI-35c2e5968579ea578cf04e7550ab43bc5a4b8074.tar.gz SMAPI-35c2e5968579ea578cf04e7550ab43bc5a4b8074.tar.bz2 SMAPI-35c2e5968579ea578cf04e7550ab43bc5a4b8074.zip |
expand analyzer unit tests (#471)
Diffstat (limited to 'src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/StardewValley/Object.cs')
-rw-r--r-- | src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/StardewValley/Object.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/StardewValley/Object.cs b/src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/StardewValley/Object.cs index 498c38c1..3dd66a6d 100644 --- a/src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/StardewValley/Object.cs +++ b/src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/StardewValley/Object.cs @@ -1,6 +1,12 @@ -// ReSharper disable CheckNamespace -- matches Stardew Valley's code +// ReSharper disable CheckNamespace, InconsistentNaming -- matches Stardew Valley's code +using Netcode; + namespace StardewValley { /// <summary>A simplified version of Stardew Valley's <c>StardewValley.Object</c> class for unit testing.</summary> - public class Object : Item { } + public class Object : Item + { + /// <summary>A net int field with an equivalent non-net property.</summary> + public NetInt type = new NetInt { Value = 42 }; + } } |