示例#1
0
        public void AddNotesToTrap()
        {
            DiceCup.SetRandom(new Random(700));
            var architect = new TrapArchitect();

            var trapBase = architect.GetTrapBaseFactory();
            var trapEffect = architect.GetTrapEffectFactory();
            var trapDamage = architect.GetTrapDamageFactory();
            var trap = new Trap(trapBase, trapEffect, trapDamage);
            trap.AddNotes("This trap is a test of the note application system.");

            Approvals.Verify(trap);
        }
示例#2
0
        public void SpeceficTrapTest()
        {
            DiceCup.SetRandom(new Random(4));
            var architect = new TrapArchitect();

            var trapBase = architect.GetSpecificTrapBase(15);
            var trapEffect = architect.GetSpecificTrapEffect(33);
            var trapDamage = architect.GetSpecificTrapDamage(8);
            var trap = new Trap(trapBase, trapEffect, trapDamage);

            Approvals.Verify(trap);
        }