コード例 #1
0
        public void CoverageFix()
        {
            var attribute = new MapArrayAttribute(0);

            Assert.Throws <NotSupportedException>(() => attribute.Filler);

            Assert.Throws <ArgumentOutOfRangeException>(() => new MapArrayAttribute(-1));
        }
コード例 #2
0
        private static IMapConverterBuilder CreateConverterBuilder(
            MapArrayAttribute arrayAttribute,
            AbstractMemberMapAttribute memberAttribute)
        {
            if (arrayAttribute is null)
            {
                return(memberAttribute.GetConverterBuilder());
            }

            var builder = arrayAttribute.GetArrayConverterBuilder();

            builder.ElementConverterBuilder = memberAttribute.GetConverterBuilder();
            return(builder);
        }