示例#1
0
        public void Test003a_GetContent_ThrowsAnExceptionIfFileDoesntExist()
        {
            var path = "dfgdfg.txt";

            var p = new PXDocument(path);

            Assert.Throws(typeof(Exception), () => p.ReadAllLines());
        }
示例#2
0
        public void Test002_CheckContentInTestFile()
        {
            var path = DataFile("test.txt");

            var p = new PXDocument(path);

            Assert.AreEqual(new List <string>()
            {
                "blabla1", "blabla2"
            }, p.ReadAllLines());
        }