diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-14 19:51:50 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-14 19:51:50 -0400 |
commit | 6d8cf614a24ab69baffa89c351b9a22776741442 (patch) | |
tree | 6e07d08270b478d4f7596d5cea9a525621fdab7b /src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/Netcode/NetList.cs | |
parent | c2cb76b79919261c4d7eab107c5cb77ec6c6a81c (diff) | |
download | SMAPI-6d8cf614a24ab69baffa89c351b9a22776741442.tar.gz SMAPI-6d8cf614a24ab69baffa89c351b9a22776741442.tar.bz2 SMAPI-6d8cf614a24ab69baffa89c351b9a22776741442.zip |
don't warn for NetList conversion to implemented interface (#471)
Diffstat (limited to 'src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/Netcode/NetList.cs')
-rw-r--r-- | src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/Netcode/NetList.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/Netcode/NetList.cs b/src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/Netcode/NetList.cs new file mode 100644 index 00000000..1699f71c --- /dev/null +++ b/src/SMAPI.ModBuildConfig.Analyzer.Tests/Mock/Netcode/NetList.cs @@ -0,0 +1,9 @@ +// ReSharper disable CheckNamespace -- matches Stardew Valley's code +using System.Collections; +using System.Collections.Generic; + +namespace Netcode +{ + /// <summary>A simplified version of Stardew Valley's <c>Netcode.NetObjectList</c> for unit testing.</summary> + public class NetList<T> : List<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable { } +} |