public Convert ( object value, |
||
value | object | |
targetType | ||
parameter | object | |
culture | System | |
Résultat | object |
public void Convert_True() { // Arrange var converter = new InverseBoolToVisibilityConverter(); // Act var result = (Visibility)converter.Convert(true, null, null, null); // Assert Assert.AreEqual(Visibility.Collapsed, result); }
public void Convert_False() { // Arrange var converter = new InverseBoolToVisibilityConverter(); // Act var result = (Visibility)converter.Convert(false, null, null, null); // Assert Assert.AreEqual(Visibility.Visible, result); }