Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornhellander committed Dec 20, 2023
1 parent 7ffc577 commit e600169
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

// Tests calls where nullability rules are not obeyed
#pragma warning disable CS8604 // Possible null reference argument.

namespace StyleCop.Analyzers.Test.Lightup
{
using System;
Expand All @@ -18,8 +15,8 @@ public class IImportScopeWrapperCSharp11UnitTests
public void TestNull()
{
object? obj = null;
Assert.False(IImportScopeWrapper.IsInstance(obj));
var wrapper = IImportScopeWrapper.FromObject(obj);
Assert.False(IImportScopeWrapper.IsInstance(obj!));
var wrapper = IImportScopeWrapper.FromObject(obj!);
Assert.Throws<NullReferenceException>(() => wrapper.Aliases);
}

Expand Down

0 comments on commit e600169

Please sign in to comment.