public void FailBuildingTest() { var builder = new AttributePropertyBuilder(); Assert.Throws<ArgumentNullException>(() => builder.Build(null)); Assert.Throws<ArgumentException>(() => builder.Build(new List<IValue> { new StringValue("foo") })); }
public void BuildBasicTest() { var builder = new AttributePropertyBuilder(); var property = builder.Build(new List<IValue> { new StringValue("foo"), new StringValue("bar") }); Assert.IsNotNull(property); Assert.IsInstanceOf<AttributeProperty>(property); }