示例#1
0
        public void ReadNoFileTest()
        {
            Directory.CreateDirectory(Path.GetDirectoryName(FullPath));
            File.Delete(FullPath);

            var deleted = new DeletedDefaultAc(FullPath);

            Assert.AreEqual(0, deleted.DeletedRegistration().Count());
        }
示例#2
0
        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"));
        }
示例#3
0
        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"));
        }