Ejemplo n.º 1
0
        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"));
        }
Ejemplo n.º 2
0
 public StaticCodeAnalysisScheduler()
 {
     _pMDTool         = new StaticCodeAnalysisPMDTool();
     _pMDReportParser = new StaticCodeAnalysisPMDReportParser();
     _toolToParserMap = new Dictionary <IStaticCodeAnalysisTool, IStaticCodeAnalysisToolParser>();
     _toolToParserMap.Add(_pMDTool, _pMDReportParser);
 }
Ejemplo n.º 3
0
        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"));
        }