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

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

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

            Assert.IsTrue(clone.Equals(target));
        }
Esempio 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);
        }