Skip to content

Commit 42cbc8c

Browse files
committed
Tests
1 parent 3152c7b commit 42cbc8c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Components/Endpoints/test/Binding/FormDataMapperTests.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
using System.Buffers;
55
using System.Collections;
66
using System.Collections.Concurrent;
7+
using System.Collections.Generic;
78
using System.Collections.Immutable;
89
using System.Collections.ObjectModel;
910
using System.Diagnostics.CodeAnalysis;
1011
using System.Globalization;
11-
using System.Xml.Linq;
1212
using Microsoft.Extensions.Primitives;
1313

1414
namespace Microsoft.AspNetCore.Components.Endpoints.Binding;
@@ -480,6 +480,14 @@ public void CanDeserialize_Collections_IImmutableStack()
480480
CanDeserialize_Collection<IImmutableStack<int>, ImmutableStack<int>, int>(expected);
481481
}
482482

483+
[Fact]
484+
public void CanDeserialize_Collections_CustomCollection()
485+
{
486+
// Arrange
487+
var expected = new CustomCollection<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
488+
CanDeserialize_Collection<CustomCollection<int>, CustomCollection<int>, int>(expected);
489+
}
490+
483491
[Fact]
484492
public void CanDeserialize_Dictionary_Dictionary()
485493
{

0 commit comments

Comments
 (0)