Ejemplo n.º 1
0
        public static void GetMinCapacityTest()
        {
            var instance    = new DBTypeSettingList();
            var maxCapacity = instance.GetMinCapacity();

            // 取得した値が容量最大値と一致すること
            Assert.AreEqual(maxCapacity, DBTypeSettingList.MinCapacity);
        }
Ejemplo n.º 2
0
        public static void SerializeTest()
        {
            var target = new DBTypeSettingList();

            target.AdjustLength(3);
            var clone = DeepCloner.DeepClone(target);

            Assert.IsTrue(clone.Equals(target));
        }
Ejemplo n.º 3
0
        private static DBTypeSettingList CreateTypeSettingList(int length)
        {
            if (length == -1)
            {
                return(null);
            }

            var result = new DBTypeSettingList();

            for (var i = 0; i < length; i++)
            {
                result.Add(new DBTypeSetting
                {
                    TypeName = $"TypeName_{i}",
                });
            }

            return(result);
        }