public void SequentialDoorsCollection_Count_Should_Return_The_Correct_Count() { const int count = 20; SequentialDoorsCollection collection = new SequentialDoorsCollection(count); Assert.Equal(count, collection.Count); }
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)); } }
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)); } }