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);
        }
示例#2
0
 /// <summary>
 ///     Clear list of records
 /// </summary>
 private static void Purge()
 {
     CabinetService.Clear();
 }