public void ShouldHaveChipsDefined()
        {
            List<Chip> chips = null;

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }
Ejemplo n.º 2
0
        public void ShouldHaveAtLeastOneChip()
        {
            List <Chip> chips = new List <Chip>();

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }
        public void ShouldHaveAtLeastOneChip()
        {
            List<Chip> chips = new List<Chip>();

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }
Ejemplo n.º 4
0
        public void ShouldHaveChipsDefined()
        {
            List <Chip> chips = null;

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }
        public void BlueRightMarker_NoChipsWithBlueOnRightSide_CannotBeUnlocked()
        {
            List<Chip> chips = new List<Chip>()
            {
                new Chip(SecurityColor.Blue, SecurityColor.Red),
                new Chip(SecurityColor.Blue, SecurityColor.Yellow),
                new Chip(SecurityColor.Blue, SecurityColor.Green)
            };

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }
        public void BlueLeftMarker_NoChipsWithBlueOnLeftSide_CannotBeUnlocked()
        {
            List<Chip> chips = new List<Chip>()
            {
                new Chip(SecurityColor.Green, SecurityColor.Blue),
                new Chip(SecurityColor.Orange, SecurityColor.Blue),
                new Chip(SecurityColor.Purple, SecurityColor.Blue)
            };

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }
Ejemplo n.º 7
0
        public void BlueRightMarker_NoChipsWithBlueOnRightSide_CannotBeUnlocked()
        {
            List <Chip> chips = new List <Chip>()
            {
                new Chip(SecurityColor.Blue, SecurityColor.Red),
                new Chip(SecurityColor.Blue, SecurityColor.Yellow),
                new Chip(SecurityColor.Blue, SecurityColor.Green)
            };

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }
Ejemplo n.º 8
0
        public void BlueLeftMarker_NoChipsWithBlueOnLeftSide_CannotBeUnlocked()
        {
            List <Chip> chips = new List <Chip>()
            {
                new Chip(SecurityColor.Green, SecurityColor.Blue),
                new Chip(SecurityColor.Orange, SecurityColor.Blue),
                new Chip(SecurityColor.Purple, SecurityColor.Blue)
            };

            SecuritySystem system = new SecuritySystem(SecurityColor.Blue, SecurityColor.Blue);

            Assert.IsFalse(system.CanBeUnlocked(chips));
        }