public virtual void TestClear() { SinkQueue <int> q = new SinkQueue <int>(128); for (int i = 0; i < q.Capacity() + 97; ++i) { q.Enqueue(i); } Assert.Equal("queue size", q.Capacity(), q.Size()); q.Clear(); Assert.Equal("queue size", 0, q.Size()); }