public void Should_convert_Visible_Visibility_back_to_true() { var boolean = new BooleanToVisibilityConverter().ConvertBack(Visibility.Visible, null, null, null); Assert.AreEqual(true, boolean); }
public void Should_convert_false_to_Collapsed_Visibility() { var visibility = new BooleanToVisibilityConverter().Convert(false, null, null, null); Assert.AreEqual(Visibility.Collapsed, visibility); }
public void Should_convert_true_to_Visible_Visibility() { var visiblity = new BooleanToVisibilityConverter().Convert(true,null,null, null); Assert.AreEqual(Visibility.Visible, visiblity); }
public void Should_convert_Collapsed_Visibility_back_to_false() { var boolean = new BooleanToVisibilityConverter().ConvertBack(Visibility.Collapsed, null, null, null); Assert.AreEqual(false, boolean); }