Enabling FxCop on tests (#6481)

This commit is contained in:
Clint Rutkas
2020-09-09 15:33:18 -07:00
committed by GitHub
parent fb1888f01f
commit 1027b7de72
13 changed files with 215 additions and 118 deletions

View File

@@ -137,12 +137,8 @@ namespace Microsoft.Plugin.Calculator
public void Init(PluginInitContext context)
{
if (context == null)
{
throw new ArgumentNullException(paramName: nameof(context));
}
Context = context ?? throw new ArgumentNullException(paramName: nameof(context));
Context = context;
Context.API.ThemeChanged += OnThemeChanged;
UpdateIconPath(Context.API.GetCurrentTheme());
}