public void PerformListOfIOPathOperation_AddDirsToResults_DirsToAdd_NoDirs_ExpectTrue()
        {
            //-----------------------Arrange------------------------
            var mockActivityIOPath = new Mock <IActivityIOPath>();
            var enumerableString   = new List <string>();
            //-----------------------Act----------------------------
            var appendBackSlashes = PerformListOfIOPathOperation.AddDirsToResults(enumerableString, mockActivityIOPath.Object);

            //-----------------------Assert-------------------------
            Assert.AreEqual(0, appendBackSlashes.Count);
        }
        public void PerformListOfIOPathOperation_AddDirsToResults_DirsToAdd_WithInValidDirs_ExpectIOException()
        {
            //-----------------------Arrange------------------------
            var mockActivityIOPath = new Mock <IActivityIOPath>();
            var enumerableString   = new List <string>();

            enumerableString.Add("testDir1");
            enumerableString.Add("testDir2");
            //-----------------------Act----------------------------
            //-----------------------Assert-------------------------
            Assert.ThrowsException <IOException>(() => PerformListOfIOPathOperation.AddDirsToResults(enumerableString, mockActivityIOPath.Object));
        }
        public void PerformListOfIOPathOperation_AddDirsToResults_DirsToAdd_WithValidDirs_ExpectTrue()
        {
            //-----------------------Arrange------------------------
            var mockActivityIOPath = new Mock <IActivityIOPath>();
            var enumerableString   = new List <string>();

            enumerableString.Add("ftp://testParth/logger1.log");
            enumerableString.Add("c://testParth/logger2.log");
            //-----------------------Act----------------------------
            var addDirsToResults = PerformListOfIOPathOperation.AddDirsToResults(enumerableString, mockActivityIOPath.Object);

            //-----------------------Assert-------------------------
            Assert.AreEqual(2, addDirsToResults.Count);
            Assert.AreEqual("ftp://testParth/logger1.log", addDirsToResults[0].Path);
            Assert.AreEqual("c://testParth/logger2.log", addDirsToResults[1].Path);
        }