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