public void TestAdd_SomeQueue_SizeIncreasedOne() { var p = new PiecesQueue(); Assert.That(!p.Any()); p.Add(_piece); Assert.That(p.Count() == 1, "Size was " + p.Count()); }
private static PiecesQueue TranslateToPiecesQueue(IEnumerable <Flowerz.Model.Piece> queue) { var q = new PiecesQueue(); foreach (var flower in queue) { q.Add(new Flowerz.SolverModel.Piece(flower)); } Console.WriteLine("Queue info: "); foreach (var piece in q) { Console.Write(piece + ", "); } Console.WriteLine(); return(q); }