Пример #1
0
        //ncrunch: no coverage start
        static void Main(string[] args)
        {
            FileExtensionManager myManager = new FileExtensionManager();

            ExtensionManagerFactory.SetManager(myManager);

            LogAnalyzer logAn = new LogAnalyzer();

            logAn.IsValidLogFileName("ValidFileName.SLF");
        }
Пример #2
0
        protected virtual bool IsValid(string fileName)
        {
            FileExtensionManager manager = new FileExtensionManager();

            return(manager.IsValid(fileName));
        }