AOUT.CH6.LogAN.LogAnalyzer.Analyze C# (CSharp) Method

Analyze() public method

public Analyze ( string fileName ) : void
fileName string
return void
        public void Analyze(string fileName)
        {
            if (fileName.Length < 8)
            {
                LoggingFacility.Log("aFilename too short:" + fileName);
            }
            //rest of the method here
        }

Usage Example

 public void Analyze_EmptyFile_ThrowsException()
 {
     LogAnalyzer la = new LogAnalyzer();
     la.Analyze("myemptyfile.txt");
     //rest of test
 }
LogAnalyzer