Exemplo n.º 1
0
    public void DeleteAction()
    {
        int selected = eqDrop.value;

        ListDeleter.DeleteFromList(CharacterStatic.eqLable, selected);
        ListDeleter.DeleteFromList(CharacterStatic.eqDescription, selected);
        DeleteDrop.Delete(ref eqDrop, CharacterStatic.eqLable, new InputField[] { eqLabel, eqDescription });
    }
Exemplo n.º 2
0
    /// <summary>
    /// Action for delete value in static class and dropdown.
    /// </summary>
    public void DeleteAction()
    {
        int selected = abilityDrop.value;

        ListDeleter.DeleteFromList(CharacterStatic.abilityLable, selected);
        ListDeleter.DeleteFromList(CharacterStatic.abilityValue, selected);
        ListDeleter.DeleteFromList(CharacterStatic.abilityDescription, selected);
        DeleteDrop.Delete(ref abilityDrop, CharacterStatic.abilityLable, new InputField[] { abilityLabel, abilityDescription }, abilityLevel);
    }
Exemplo n.º 3
0
    /// <summary>
    /// Delete value from Static class and dropdown.
    /// </summary>
    public void DeleteAction()
    {
        int selected = skillDrop.value;

        ListDeleter.DeleteFromList(CharacterStatic.skillLable, selected);
        ListDeleter.DeleteFromList(CharacterStatic.skillValue, selected);
        ListDeleter.DeleteFromList(CharacterStatic.skillDescription, selected);

        DeleteDrop.Delete(ref skillDrop, CharacterStatic.skillLable, new InputField[] { skillLabel, skillLevel, skillDescription });
    }
Exemplo n.º 4
0
        public void ReportsError()
        {
            var intBetweenZeroAndTen = MGen.Int(0, 10);

            var ints =
                from numberOfInts in intBetweenZeroAndTen
                from list in intBetweenZeroAndTen.Many(numberOfInts).ToList()
                select list;

            var listDeleter = new ListDeleter();

            var test =
                from list in "input list".ShrinkableInput(ints)
                from toRemove in "to remove".ShrinkableInput(intBetweenZeroAndTen)
                from output in "listDeleter.DoingMyThing".Act(() => listDeleter.DoingMyThing(list, toRemove))
                from spec in "int removed".Spec(() => !output.Contains(toRemove))
                select Unit.Instance;

            test.Verify(10, 10);
        }
Exemplo n.º 5
0
        public void ReportsError()
        {
            var intBetweenZeroAndTen = MGen.Int(0, 10);

            var ints =
                from numberOfInts in intBetweenZeroAndTen
                from list in intBetweenZeroAndTen.Many(numberOfInts).ToList()
                select list;

            var listDeleter = new ListDeleter();

            var test =
                from list in "input list".ShrinkableInput(ints)
                from toRemove in "to remove".ShrinkableInput(intBetweenZeroAndTen)
                from output in "listDeleter.DoingMyThing".Act(() => listDeleter.DoingMyThing(list, toRemove))
                from spec in "int removed".Spec(() => !output.Contains(toRemove))
                select Unit.Instance;

            test.Verify(10, 10);
        }