8 instantiations of CustomValueSerializerContext
WindowsBase.Tests (8)
System\Windows\Converters\PointValueSerializerTests.cs (8)
28Assert.Equal(expected, serializer.CanConvertToString(value, new CustomValueSerializerContext())); 37Assert.Equal(expected, serializer.ConvertToString(matrix, new CustomValueSerializerContext())); 54Assert.Throws<NotSupportedException>(() => serializer.ConvertToString(value, new CustomValueSerializerContext())); 70Assert.True(serializer.CanConvertFromString(value, new CustomValueSerializerContext())); 79Assert.Equal(expected, serializer.ConvertFromString(value, new CustomValueSerializerContext())); 87Assert.Throws<NotSupportedException>(() => serializer.ConvertFromString(null, new CustomValueSerializerContext())); 96Assert.Throws<InvalidOperationException>(() => serializer.ConvertFromString(value, new CustomValueSerializerContext())); 105Assert.Throws<FormatException>(() => serializer.ConvertFromString(value, new CustomValueSerializerContext()));