public Convert ( object value, |
||
value | object | |
targetType | ||
parameter | object | |
culture | System | |
Результат | object |
public void WhenConvertCalledWithDifferentValueThenVisibilityWhenNotEqualReturned() { // Arrange var expected = Visibility.Collapsed; var value = DummyEnum.Value2; var converterParameter = DummyEnum.Value1; var target = new EnumVisibilityConverter(); target.VisibilityWhenNotEqual = Visibility.Collapsed; // Act var actual = target.Convert(value, typeof(Visibility), converterParameter, CultureInfo.InvariantCulture); // Assert Assert.AreEqual(expected, actual); }