示例#1
0
        public void CheckEmptyFile()
        {
            string filePath = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory,
                                                            ConfigurationManager.AppSettings["relativeFilePath"].ToString() + "EmptyFileTest.txt"));
            PyramidData pyramidData = new PyramidData(filePath);

            Assert.AreEqual(0, pyramidData.ReadByLines().ToList().Count);
        }
        public void CheckIfFileExists()
        {
            PyramidData pyramidData = new PyramidData();

            pyramidData.ReadByLines().ToList();
        }
示例#3
0
        public void CheckInitialization()
        {
            PyramidData pyramidData = new PyramidData(null);

            pyramidData.ReadByLines().ToList();
        }