public void BoolToVisibilityConvertTest() { var converter = new BoolToVisibilityConverter(); Assert.That( converter.Convert(false, typeof (Visibility), null, CultureInfo.CurrentUICulture) .Equals(Visibility.Visible)); Assert.That( converter.Convert(true, typeof (Visibility), null, CultureInfo.CurrentUICulture) .Equals(Visibility.Collapsed)); }
public void InitializeConverter() { _converter = new BoolToVisibilityConverter(); }