public void NotEnoughOrWrongValuesTest() { var builder = new FormatTextPropertyBuilder(); Assert.Throws<ArgumentException>(() => builder.Build(new List<IValue>())); Assert.Throws<ArgumentNullException>(() => builder.Build(null)); }
public void BuildWithoutFormatValueTest() { var builder = new FormatTextPropertyBuilder(); var property = builder.Build(new List<IValue> { new StringValue("foo") }); Assert.IsNotNull(property); Assert.IsInstanceOf<FormatTextProperty>(property); }