summaryrefslogtreecommitdiff
path: root/src/SMAPI.Tests.ModApiProvider
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Tests.ModApiProvider')
-rw-r--r--src/SMAPI.Tests.ModApiProvider/Framework/BaseApi.cs4
-rw-r--r--src/SMAPI.Tests.ModApiProvider/Framework/SimpleApi.cs12
-rw-r--r--src/SMAPI.Tests.ModApiProvider/ProviderMod.cs2
3 files changed, 7 insertions, 11 deletions
diff --git a/src/SMAPI.Tests.ModApiProvider/Framework/BaseApi.cs b/src/SMAPI.Tests.ModApiProvider/Framework/BaseApi.cs
index b5870baa..77001e4c 100644
--- a/src/SMAPI.Tests.ModApiProvider/Framework/BaseApi.cs
+++ b/src/SMAPI.Tests.ModApiProvider/Framework/BaseApi.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
namespace SMAPI.Tests.ModApiProvider.Framework
{
/// <summary>The base class for <see cref="SimpleApi"/>.</summary>
@@ -9,6 +7,6 @@ namespace SMAPI.Tests.ModApiProvider.Framework
** Test interface
*********/
/// <summary>A property inherited from a base class.</summary>
- public string InheritedProperty { get; set; }
+ public string? InheritedProperty { get; set; }
}
}
diff --git a/src/SMAPI.Tests.ModApiProvider/Framework/SimpleApi.cs b/src/SMAPI.Tests.ModApiProvider/Framework/SimpleApi.cs
index 82e902f5..e7e1ccef 100644
--- a/src/SMAPI.Tests.ModApiProvider/Framework/SimpleApi.cs
+++ b/src/SMAPI.Tests.ModApiProvider/Framework/SimpleApi.cs
@@ -1,4 +1,4 @@
-#nullable disable
+// ReSharper disable UnusedMember.Global -- used dynamically through proxies
using System;
using System.Collections.Generic;
@@ -16,7 +16,7 @@ namespace SMAPI.Tests.ModApiProvider.Framework
** Events
****/
/// <summary>A simple event field.</summary>
- public event EventHandler<int> OnEventRaised;
+ public event EventHandler<int>? OnEventRaised;
/// <summary>A simple event property with custom add/remove logic.</summary>
public event EventHandler<int> OnEventRaisedProperty
@@ -33,16 +33,16 @@ namespace SMAPI.Tests.ModApiProvider.Framework
public int NumberProperty { get; set; }
/// <summary>A simple object property.</summary>
- public object ObjectProperty { get; set; }
+ public object? ObjectProperty { get; set; }
/// <summary>A simple list property.</summary>
- public List<string> ListProperty { get; set; }
+ public List<string>? ListProperty { get; set; }
/// <summary>A simple list property with an interface.</summary>
- public IList<string> ListPropertyWithInterface { get; set; }
+ public IList<string>? ListPropertyWithInterface { get; set; }
/// <summary>A property with nested generics.</summary>
- public IDictionary<string, IList<string>> GenericsProperty { get; set; }
+ public IDictionary<string, IList<string>>? GenericsProperty { get; set; }
/// <summary>A property using an enum available to both mods.</summary>
public BindingFlags EnumProperty { get; set; }
diff --git a/src/SMAPI.Tests.ModApiProvider/ProviderMod.cs b/src/SMAPI.Tests.ModApiProvider/ProviderMod.cs
index 3fc8d749..c36e1c6d 100644
--- a/src/SMAPI.Tests.ModApiProvider/ProviderMod.cs
+++ b/src/SMAPI.Tests.ModApiProvider/ProviderMod.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
using System.Collections.Generic;
using System.Reflection;
using SMAPI.Tests.ModApiProvider.Framework;