public void Convert_EmptyInputValues_ReturnsCorrect(object value, bool inverted = false) { m_isEmptyConverter.Inverted = inverted; var result = (bool)m_isEmptyConverter.Convert(value, null, null, null); if (!inverted) { result.Should().BeTrue(); } else { result.Should().BeFalse(); } }
public void ConvertTest(object value, object correctValue) { var resultValue = _converter.Convert(value, value?.GetType(), null, CultureInfo.CurrentCulture); Assert.AreEqual(correctValue, resultValue); }