public void Constructor_int(int count) { var queue = new SeqQueue <T>(count); Assert.Equal(new T[0], queue.ToArray()); queue.Clear(); Assert.Equal(new T[0], queue.ToArray()); }
public void ToArray_NonWrappedQueue(int count) { var collection = new SeqQueue <T>(count + 1); AddToCollection(collection, count); var elements = collection.ToArray(); elements.Reverse(); Assert.True(Enumerable.SequenceEqual(elements, collection.ToArray <T>())); }