public void TestClear() { //Arrange var fileCabinet = new FileCabinetService(); var expected = new List <Record>(); //Act fileCabinet.Create("firstName", "lastName", "dateOfBirth"); fileCabinet.Clear(); var result = fileCabinet.GetRecords().ToList(); //Assert CollectionAssert.AreEqual(expected, result); }
/// <summary> /// Clear list of records /// </summary> private static void Purge() { CabinetService.Clear(); }