public void RemoveARangeOfRequests() { string originalRequest = "GET / HTTP/1.1"; string originalResponse = "HTTP/1.1 200 OK"; List <int> addedRequests = new List <int>(); TrafficViewerFile file = new TrafficViewerFile(); addedRequests.Add(file.AddRequestResponse(originalRequest, originalResponse)); addedRequests.Add(file.AddRequestResponse(originalRequest, originalResponse)); //add one more int savedRequestId = file.AddRequestResponse(originalRequest, originalResponse); addedRequests.Add(file.AddRequestResponse(originalRequest, originalResponse)); addedRequests.Add(file.AddRequestResponse(originalRequest, originalResponse)); Assert.AreEqual(5, file.RequestCount); file.RemoveRequestBatch(addedRequests); Assert.AreEqual(1, file.RequestCount); Assert.IsNotNull(file.GetRequestInfo(savedRequestId)); file.Close(false); }