public void ReadNoFileTest() { Directory.CreateDirectory(Path.GetDirectoryName(FullPath)); File.Delete(FullPath); var deleted = new DeletedDefaultAc(FullPath); Assert.AreEqual(0, deleted.DeletedRegistration().Count()); }
public void ReadTest() { Directory.CreateDirectory(Path.GetDirectoryName(FullPath)); File.WriteAllText(FullPath, text); var deleted = new DeletedDefaultAc(FullPath); Assert.IsTrue(deleted.DeletedRegistration().SequenceEqual("A-BCDE", "N331D")); }
public void NoFileAddThenRead() { Directory.CreateDirectory(Path.GetDirectoryName(FullPath)); File.Delete(FullPath); var deleted = new DeletedDefaultAc(FullPath); deleted.Add("N567S"); Assert.IsTrue(deleted.DeletedRegistration().SequenceEqual("N567S")); }