Skip to content

Commit 31e417b

Browse files
authored
chore: Removed a few warnings (#779)
1 parent 4583685 commit 31e417b

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/NetEvolve.Extensions.MSTest.Tests.PublicApi/PublicApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Task PublicApi_HasNotChanged_Expected()
4444
private static bool IsVisibleToIntelliSense(Type type)
4545
{
4646
var browsable = type.GetCustomAttribute<BrowsableAttribute>();
47-
if (browsable is null || browsable.Browsable)
47+
if (browsable?.Browsable != false)
4848
{
4949
return true;
5050
}

tests/NetEvolve.Extensions.NUnit.Tests.PublicApi/PublicApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Task PublicApi_HasNotChanged_Expected()
4747
private static bool IsVisibleToIntelliSense(Type type)
4848
{
4949
var browsable = type.GetCustomAttribute<BrowsableAttribute>();
50-
if (browsable is null || browsable.Browsable)
50+
if (browsable?.Browsable != false)
5151
{
5252
return true;
5353
}

tests/NetEvolve.Extensions.TUnit.Tests.PublicApi/PublicApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static bool IsVisibleToIntelliSense(Type type)
4949
}
5050

5151
var browsable = type.GetCustomAttribute<BrowsableAttribute>();
52-
if (browsable is null || browsable.Browsable)
52+
if (browsable?.Browsable != false)
5353
{
5454
return true;
5555
}

tests/NetEvolve.Extensions.XUnit.Tests.PublicApi/PublicApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Task PublicApi_HasNotChanged_Expected()
4343
private static bool IsVisibleToIntelliSense(Type type)
4444
{
4545
var browsable = type.GetCustomAttribute<BrowsableAttribute>();
46-
if (browsable is null || browsable.Browsable)
46+
if (browsable?.Browsable != false)
4747
{
4848
return true;
4949
}

tests/NetEvolve.Extensions.XUnit.V3.Tests.PublicApi/PublicApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Task PublicApi_HasNotChanged_Expected()
4444
private static bool IsVisibleToIntelliSense(Type type)
4545
{
4646
var browsable = type.GetCustomAttribute<BrowsableAttribute>();
47-
if (browsable is null || browsable.Browsable)
47+
if (browsable?.Browsable != false)
4848
{
4949
return true;
5050
}

0 commit comments

Comments
 (0)