public void ShowVisibility_WhenNoValueProvided() { VisibilityOnStringEmptyConverter converter = new VisibilityOnStringEmptyConverter(); string result = (string)converter.Convert("anything", typeof(string), null, CultureInfo.InvariantCulture); Assert.AreEqual("Visible", result); }
public void CollapseVisibility_WhenNoValueProvided() { VisibilityOnStringEmptyConverter converter = new VisibilityOnStringEmptyConverter(); string result = (string)converter.Convert(string.Empty, typeof(string), null, CultureInfo.InvariantCulture); Assert.AreEqual("Collapsed", result); }