public void ConvertBack_NonEmptyListValue_ReturnsCorrect(bool inverted) { m_isEmptyConverter.Inverted = inverted; var result = (bool)m_isEmptyConverter.ConvertBack(new List <string>() { "Non empty string" }, null, null, null); if (!inverted) { result.Should().BeTrue(); } else { result.Should().BeFalse(); } }
public void ConvertBackTest(object value, object correctValue) { var resultValue = _converter.ConvertBack(value, value?.GetType(), null, CultureInfo.CurrentCulture); Assert.AreEqual(correctValue, resultValue); }