コード例 #1
0
        public void GetDocuments_ExistedDocumentsGiven_ShouldReturnAllDocuments()
        {
            Solution solution = _analyzer.OpenSolution();
            IEnumerable <Document> documents = _analyzer.GetDocuments(solution);

            Assert.NotNull(documents);
        }
コード例 #2
0
        public void OpenSolution_ValidSolutionPathGiven_ShouldReturnSolution(string solutionPath)
        {
            var      analyzer = new CodeSmellAnalyzer(solutionPath);
            Solution solution = analyzer.OpenSolution();

            Assert.NotNull(solution);
        }
コード例 #3
0
        public void OpenSolution_InvalidSolutionPathGive_ShouldThrowException(string solutionPath)
        {
            var analyzer = new CodeSmellAnalyzer(solutionPath);

            Assert.Throws <AggregateException>(() => analyzer.OpenSolution());
        }