public void T0() { // Arrange var testConverter = new OptionalDoubleToBrushConverter(); // Act var actual = testConverter.Convert(null, typeof(object), null !, InvariantCulture); // Assert Assert.Equal(Brushes.OrangeRed, actual); }
public void T2() { // Arrange var testConverter = new OptionalDoubleToBrushConverter(); var testValue = Option.Some(-20.00); // Act var actual = testConverter.Convert(testValue, typeof(object), null !, InvariantCulture); // Assert Assert.Equal(Brushes.OrangeRed, actual); }
public void T3() { var testConverter = new OptionalDoubleToBrushConverter(); Assert.Throws <NotSupportedException>(() => testConverter.ConvertBack(null !, typeof(object), null !, InvariantCulture)); }