Skip to content

Commit fc31f00

Browse files
committed
Cleanups, fix build
1 parent d1f8362 commit fc31f00

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/Components/Endpoints/src/Binding/Factories/DictionaryConverterFactory.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ internal class DictionaryConverterFactory : IFormDataConverterFactory
1111

1212
public bool CanConvert(Type type, FormDataMapperOptions options)
1313
{
14-
// Well-known dictionary types
15-
// IDictionary<TKey, TValue>
16-
// IReadOnlyDictionary<TKey, TValue>
17-
// Dictionary<TKey, TValue>
18-
// SortedDictionary<TKey, TValue>
19-
// SortedList<TKey, TValue>
20-
// ConcurrentDictionary<TKey, TValue>
21-
// ImmutableDictionary<TKey, TValue>
22-
// ImmutableSortedDictionary<TKey, TValue>
23-
2414
// Type must implement IDictionary<TKey, TValue> IReadOnlyDictionary<TKey, TValue>
2515
// Note that IDictionary doesn't extend IReadOnlyDictionary, hence the need for two checks
2616
var dictionaryType = ClosedGenericMatcher.ExtractGenericInterface(type, typeof(IDictionary<,>)) ??

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -694,14 +694,6 @@ private void CanDeserialize_Dictionary<TDictionary, TImplementation, TKey, TValu
694694
Assert.Equal(expected.OrderBy(o => o.Key).ToArray(), dictionary.OrderBy(o => o.Key).ToArray());
695695
}
696696

697-
[Fact]
698-
public void CanDeserialize_Collections_CustomCollection()
699-
{
700-
// Arrange
701-
var expected = new CustomCollection<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
702-
CanDeserialize_Collection<CustomCollection<int>, CustomCollection<int>, int>(expected);
703-
}
704-
705697
private void CanDeserialize_Collection<TCollection, TImplementation, TElement>(TImplementation expected, bool sequenceEquals = false)
706698
{
707699
// Arrange

0 commit comments

Comments
 (0)