public void ClearAll_ShouldClearEverything() { var queryQueue = new QueryQueue(); var query1 = new TestQuery(1, QueryFunctionType.SingleQuote); var query2 = new TestQuery(2, QueryFunctionType.IntraDay); var query3 = new TestQuery(3, QueryFunctionType.Weekly); queryQueue.Enqueue(query1); queryQueue.Enqueue(query2); queryQueue.Enqueue(query3); queryQueue.ClearAll(); Assert.True(queryQueue.IsEmpty()); // can add query again which means duplication check is gone. Assert.True(queryQueue.Enqueue(query1)); }