public Convert ( object values, |
||
values | object | The array of values that the source bindings in the |
targetType | The type of the binding target property. | |
parameter | object | The converter parameter to use. |
culture | The culture to use in the converter. | |
Résultat | object |
public void SchedulerMultiBoolToVisibilityConverter_Convert_WithFalseFalse_ReturnsVisible() { SchedulerMultiBoolToVisibilityConverter schedulerMultiBoolToVisibilityConverter = new SchedulerMultiBoolToVisibilityConverter(); object[] values = { false, false }; var actual = schedulerMultiBoolToVisibilityConverter.Convert(values, null, null, null); Assert.AreEqual(Visibility.Visible, actual); }
public void SchedulerMultiBoolToVisibilityConverter_Convert_WithTrueFalse_ReturnsCollapsed() { SchedulerMultiBoolToVisibilityConverter schedulerMultiBoolToVisibilityConverter = new SchedulerMultiBoolToVisibilityConverter(); object[] values = { true, false }; var actual = schedulerMultiBoolToVisibilityConverter.Convert(values, null, null, null); Assert.AreEqual(Visibility.Collapsed, actual); }