public static void GetMinCapacityTest() { var instance = new ShortCutPositionList(); var maxCapacity = instance.GetMinCapacity(); // 取得した値が容量最大値と一致すること Assert.AreEqual(maxCapacity, ShortCutPositionList.MinCapacity); }
public static void SerializeTest() { var target = new ShortCutPositionList { [2] = new ShortCutPosition(2) }; var clone = DeepCloner.DeepClone(target); Assert.IsTrue(clone.Equals(target)); }
/** ======================================== * EditorIniオブジェクト作成 * ======================================== */ public static EditorIniData GenerateData0() { return(new EditorIniData { StartFlag = 0, LastLoadFile = "MapData/Map000.mps", MainWindowPosition = (0, 0), MainWindowSize = (651, 322), MapChipWindowPosition = (0, 0), MapEventWindowPosition = (273, 230), MapEventWindowSize = (840, 410), MapEventInputWindowPosition = (0, 0), CommonEventWindowPosition = (0, 0), CommonEventWindowSize = (800, 640), CommonEventInputWindowPosition = (0, 0), UserDbWindowPosition = (27, 54), ChangeableDbWindowPosition = (27, 54), SystemDbWindowPosition = (27, 54), DatabaseValueNumberDrawType = DatabaseValueNumberDrawType.FromCode("0"), EditTimeDrawType = EditTimeDrawType.On, EditTime = 14, NotEditTime = 0, IsShowDebugWindow = true, LayerTransparent = LaterTransparentType.FromCode("2"), EventLayerOpacity = EventLayerOpacityType.FromCode("1"), CommandColorType = CommandColorType.FromCode("0"), IsDrawBackgroundImage = true, NotCopyExtList = new ExtensionList(new Extension[] { ".psd", ".sai", ".svg", ".xls", ".db", ".tmp", ".bak", ".db", "dummy_file" }), CommandViewType = 0, BackupType = ProjectBackupType.FromCode("3"), ShortCutKeyList = new EventCommandShortCutKeyList(new[] { EventCommandShortCutKey.One, EventCommandShortCutKey.Two, EventCommandShortCutKey.Three, EventCommandShortCutKey.Four, EventCommandShortCutKey.Five, EventCommandShortCutKey.Six, EventCommandShortCutKey.Seven, EventCommandShortCutKey.Eight, EventCommandShortCutKey.Nine, EventCommandShortCutKey.A, EventCommandShortCutKey.B, EventCommandShortCutKey.C, EventCommandShortCutKey.D, EventCommandShortCutKey.E, EventCommandShortCutKey.F, EventCommandShortCutKey.G, EventCommandShortCutKey.H, EventCommandShortCutKey.I, EventCommandShortCutKey.J, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, EventCommandShortCutKey.One, }), CommandPositionList = new ShortCutPositionList(new ShortCutPosition[] { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1, 17, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, }), IsUseExpertCommand = false, });