public void T3() { // Arrange var testConverter = new InverseBoolToHiddenVisibilityConverter(); // Act var actual = testConverter.Convert(false, typeof(object), null !, InvariantCulture); // Assert Assert.Equal(Visibility.Visible, actual); }
public void T1() { var testConverter = new InverseBoolToHiddenVisibilityConverter(); Assert.Throws <InvalidCastException>(() => testConverter.Convert("String", typeof(object), null !, InvariantCulture)); }
public void T0() { var testConverter = new InverseBoolToHiddenVisibilityConverter(); Assert.Throws <NullReferenceException>(() => testConverter.Convert(null !, typeof(object), null !, InvariantCulture)); }