Binding\FormDataMapperTests.cs (18)
39[InlineData("Red", Colors.Red)]
40[InlineData("RED", Colors.Red)]
41[InlineData("BlUe", Colors.Blue)]
42[InlineData("green", Colors.Green)]
43public void CanDeserialize_EnumTypes(string value, Colors expected)
52var result = CallDeserialize(reader, options, typeof(Colors));
59[InlineData("Red", Colors.Red)]
60[InlineData("RED", Colors.Red)]
61[InlineData("BlUe", Colors.Blue)]
62[InlineData("green", Colors.Green)]
63public void CanDeserialize_NullableEnumTypes(string value, Colors expected)
72var result = CallDeserialize(reader, options, typeof(Colors?));
346var result = FormDataMapper.Map<List<Colors>>(reader, options);
350v => Assert.Equal(Colors.Red, v),
351v => Assert.Equal(Colors.Blue, v));
364var result = FormDataMapper.Map<List<Colors?>>(reader, options);
368v => Assert.Equal(Colors.Red, v),
369v => Assert.Equal(Colors.Blue, v));