Exemplo n.º 1
0
        public void CheckLength2Element()
        {
            string path = AppDomain.CurrentDomain.BaseDirectory;
            ReadDirrectoryAndFileName dir = new ReadDirrectoryAndFileName(path + @"Test_data/variant_1/one");

            Assert.IsTrue(dir.ReadDirectory().Length == 1);
        }
Exemplo n.º 2
0
        public void ComboCheck()
        {
            string path = AppDomain.CurrentDomain.BaseDirectory;
            ReadDirrectoryAndFileName dir = new ReadDirrectoryAndFileName(path + @"Test_data/variant_1/one/For test/");

            Assert.IsTrue(dir.ReadDirectory().Length == 5);
            string[] actual   = dir.ReadDirectory();
            string[] expected = new string[] { "dolly", "holiday", "holy", "insert", "opera" };
            CollectionAssert.AreEqual(expected, actual,
                                      "Expected: " + string.Join(",", expected) + ", actual: " + string.Join(",", actual));
        }
Exemplo n.º 3
0
        public void CheckInsertOnMatch()
        {
            string path = AppDomain.CurrentDomain.BaseDirectory;
            ReadDirrectoryAndFileName dir = new ReadDirrectoryAndFileName(path + @"Test_data/variant_1");

            Assert.IsTrue(dir.ReadDirectory().Length == 3);
            string[] actual   = dir.ReadDirectory();
            string[] expected = new string[] { "one", "three", "two" };
            CollectionAssert.AreEqual(expected, actual,
                                      "Expected: " + string.Join(",", expected) + ", actual: " + string.Join(",", actual));
        }
Exemplo n.º 4
0
 public void CheckEqualFullArray()
 {
     string path = AppDomain.CurrentDomain.BaseDirectory + @"Test_data/variant_1/one/For test/";
     ReturnFullArrayList       fullArrayList  = new ReturnFullArrayList(path);
     ReadDirrectoryAndFileName dirrectoryName = new ReadDirrectoryAndFileName(path);
 }