コード例 #1
0
        public static bool CombinePath()
        {
            IFileTool target = ToolFactory.Ioc.Get <IFileTool>();

            string expected = string.Format("1{0}2{0}c", Path.DirectorySeparatorChar);
            string actual   = target.CombinePath("1", "2", "c");

            return(expected == actual);
        }
コード例 #2
0
 public LogFileReaderList(IFileTool fileTool)
 {
     _fileTool = fileTool;
 }
コード例 #3
0
ファイル: FilePaths.cs プロジェクト: myhreman/LogParser
 public FilePaths(IFileTool fileTool)
 {
     _fileTool = fileTool;
     _filePaths = new List<string>();
 }