public static void GetMinCapacityTest() { var instance = new DBTypeSettingList(); var maxCapacity = instance.GetMinCapacity(); // 取得した値が容量最大値と一致すること Assert.AreEqual(maxCapacity, DBTypeSettingList.MinCapacity); }
public static void SerializeTest() { var target = new DBTypeSettingList(); target.AdjustLength(3); var clone = DeepCloner.DeepClone(target); Assert.IsTrue(clone.Equals(target)); }
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); }