コード例 #1
0
        public void FailBuildingTest()
        {
            var builder = new AttributePropertyBuilder();

            Assert.Throws<ArgumentNullException>(() => builder.Build(null));
            Assert.Throws<ArgumentException>(() => builder.Build(new List<IValue> { new StringValue("foo") }));
        }
コード例 #2
0
        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);
        }