public void Convert_ShouldReturnVisibilityHidden_WhenValueIsFalse() { BoolToVisiblilityConverter boolToVisiblilityConverter = new BoolToVisiblilityConverter(); var result = boolToVisiblilityConverter.Convert(false, null, null, null); Assert.AreEqual(Visibility.Hidden, result); }
public void Convert_ShouldReturnVisibilityVisable_WhenValueIsTrue() { BoolToVisiblilityConverter boolToVisiblilityConverter = new BoolToVisiblilityConverter(); var result = boolToVisiblilityConverter.Convert(true, null, null, null); Assert.AreEqual(Visibility.Visible, result); }
public void ConvertBack_ShouldThrowNotImplementedException() { BoolToVisiblilityConverter boolToVisiblilityConverter = new BoolToVisiblilityConverter(); Assert.ThrowsException <NotImplementedException>(() => boolToVisiblilityConverter.ConvertBack(new object(), null, null, null)); }