public void Given_Valid_Argument_When_Analyse_Invoked_Then_Valid_Result_Asserted() { Directory.SetCurrentDirectory(@"C:\Users\320052125\casestudy2\Analyser"); StaticCodeAnalysisPMDTool obj = new StaticCodeAnalysisPMDTool(); Assert.AreEqual("PMDReport.txt", obj.Analyse("feereport")); }
public StaticCodeAnalysisScheduler() { _pMDTool = new StaticCodeAnalysisPMDTool(); _pMDReportParser = new StaticCodeAnalysisPMDReportParser(); _toolToParserMap = new Dictionary <IStaticCodeAnalysisTool, IStaticCodeAnalysisToolParser>(); _toolToParserMap.Add(_pMDTool, _pMDReportParser); }
public void Given_Invalid_Argument_When_Analyse_Invoked_Then_Empty_String_Asserted() { Directory.SetCurrentDirectory(@"C:\Users\320052125\casestudy2\Analyser"); StaticCodeAnalysisPMDTool obj = new StaticCodeAnalysisPMDTool(); Assert.AreEqual("", obj.Analyse("notexists")); }