public void Convert_Int_0() { var converter = new CountCollapsedConverter(); Assert.AreEqual(Visibility.Collapsed, converter.Convert(0, typeof (Visibility), null, (CultureInfo)null)); }
public void Convert_Short_1() { var converter = new CountCollapsedConverter(); Assert.AreEqual(Visibility.Visible, converter.Convert((short) 1, typeof (Visibility), null, (CultureInfo)null)); }
public void Convert_String() { var converter = new CountCollapsedConverter(); Assert.AreEqual(Visibility.Visible, converter.Convert("filledstring", typeof (Visibility), null, (CultureInfo)null)); }
public void Convert_EmptyString() { var converter = new CountCollapsedConverter(); Assert.AreEqual(Visibility.Collapsed, converter.Convert(string.Empty, typeof (Visibility), null, (CultureInfo)null)); }
public void Convert_FilledList() { var converter = new CountCollapsedConverter(); Assert.AreEqual(Visibility.Visible, converter.Convert(new List<int>(new[] {1, 2, 3}), typeof (Visibility), null, (CultureInfo)null)); }
public void Convert_EmptyList() { var converter = new CountCollapsedConverter(); Assert.AreEqual(Visibility.Collapsed, converter.Convert(new List<int>(), typeof (Visibility), null, (CultureInfo)null)); }
public void ConvertBack() { var converter = new CountCollapsedConverter(); Assert.AreEqual(ConverterHelper.UnsetValue, converter.ConvertBack(null, typeof (object), null, (CultureInfo)null)); }