public void MultilistFormatter_ReturnsInvalidValues_AsExpected() { var formatter = new MultilistFormatter(); var result = formatter.Unformat("*"); Assert.Equal("*", result); }
public void MultilistFormatter_FormatsInvalidValues_AsExpected() { var formatter = new MultilistFormatter(); var result = formatter.Format(new FakeFieldValue("*")); Assert.Equal("*", result); }
public void MultilistFormatter_ReturnsValues_AsExpected() { var formatter = new MultilistFormatter(); var result = formatter.Unformat(FormattedValueExpectation); Assert.Equal(result, SourceValueExpectation); }
public void MultilistFormatter_FormatsValues_AsExpected() { var formatter = new MultilistFormatter(); var result = formatter.Format(new FakeFieldValue(SourceValueExpectation)); Assert.Equal(FormattedValueExpectation, result); }
public void MultilistFormatter_Formats_ListFieldTypes(string fieldType, bool expected) { var formatter = new MultilistFormatter(); Assert.Equal(expected, formatter.CanFormat(new FakeFieldValue("foo", fieldType))); }