public void OpenSolution_ValidSolutionPathGiven_ShouldReturnSolution(string solutionPath) { var analyzer = new CodeSmellAnalyzer(solutionPath); Solution solution = analyzer.OpenSolution(); Assert.NotNull(solution); }
public CodeSmellAnalyzerFixture() { string solutionPath = @"C: \Users\akoke\Documents\Visual Studio 2015\Projects\TransactionWrapper\TransactionWrapper.sln"; Analyzer = new CodeSmellAnalyzer(solutionPath); }
public void OpenSolution_InvalidSolutionPathGive_ShouldThrowException(string solutionPath) { var analyzer = new CodeSmellAnalyzer(solutionPath); Assert.Throws <AggregateException>(() => analyzer.OpenSolution()); }
public CodeSmellAnalyzerTest(CodeSmellAnalyzerFixture fixture) { _analyzer = fixture.Analyzer; }