コード例 #1
0
		public void MultilistFormatter_ReturnsInvalidValues_AsExpected()
		{
			var formatter = new MultilistFormatter();

			var result = formatter.Unformat("*");

			Assert.Equal("*", result);
		}
コード例 #2
0
		public void MultilistFormatter_FormatsInvalidValues_AsExpected()
		{
			var formatter = new MultilistFormatter();

			var result = formatter.Format(new FakeFieldValue("*"));

			Assert.Equal("*", result);
		}
コード例 #3
0
		public void MultilistFormatter_ReturnsValues_AsExpected()
		{
			var formatter = new MultilistFormatter();

			var result = formatter.Unformat(FormattedValueExpectation);

			Assert.Equal(result, SourceValueExpectation);
		}
コード例 #4
0
		public void MultilistFormatter_FormatsValues_AsExpected()
		{
			var formatter = new MultilistFormatter();

			var result = formatter.Format(new FakeFieldValue(SourceValueExpectation));

			Assert.Equal(FormattedValueExpectation, result);
		}
コード例 #5
0
		public void MultilistFormatter_Formats_ListFieldTypes(string fieldType, bool expected)
		{
			var formatter = new MultilistFormatter();

			Assert.Equal(expected, formatter.CanFormat(new FakeFieldValue("foo", fieldType)));
		}