Example #1
0
        public void SequentialDoorsCollection_Count_Should_Return_The_Correct_Count()
        {
            const int count = 20;
            SequentialDoorsCollection collection = new SequentialDoorsCollection(count);

            Assert.Equal(count, collection.Count);
        }
Example #2
0
        static void Main(string[] args)
        {
            var collection = new SequentialDoorsCollection(100);
            collection.Walk();

            foreach (Door door in collection)
            {
                Console.WriteLine("{0}: {1}", door.Sequance, Enum.GetName(typeof (DoorState), door.State));
            }
        }
Example #3
0
        static void Main(string[] args)
        {
            var collection = new SequentialDoorsCollection(100);

            collection.Walk();

            foreach (Door door in collection)
            {
                Console.WriteLine("{0}: {1}", door.Sequance, Enum.GetName(typeof(DoorState), door.State));
            }
        }
 public void SequentialDoorsCollection_Count_Should_Return_The_Correct_Count()
 {
     const int count = 20;
     SequentialDoorsCollection collection = new SequentialDoorsCollection(count);
     Assert.Equal(count, collection.Count);
 }