mirror of
https://github.com/PrismLibrary/Prism.git
synced 2026-10-29 05:26:34 +08:00
empty is empty
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#nullable enable
|
||||
using Prism.Core.Tests.Common.Mocks;
|
||||
using Prism.Tests.Common.Mocks;
|
||||
using Xunit;
|
||||
|
||||
namespace Prism.Tests.Common
|
||||
@@ -27,7 +27,7 @@ namespace Prism.Tests.Common
|
||||
{
|
||||
var parameters = new MockParameters("mock=Foo&mock=2&mock=Fizz");
|
||||
|
||||
IEnumerable<MockEnum> values = Enumerable.Empty<MockEnum>();
|
||||
IEnumerable<MockEnum> values = [];
|
||||
|
||||
var ex = Record.Exception(() => values = parameters.GetValues<MockEnum>("mock"));
|
||||
Assert.Null(ex);
|
||||
|
||||
Reference in New Issue
Block a user