Пример #1
0
        public async Task CheckArchitecturalConformanceAsync_Error_InvalidSolutionFilePath()
        {
            var result = await Assert.ThrowsAsync <SolutionException>(async() =>
            {
                await ErosionFinderMethods
                .CheckArchitecturalConformanceAsync("", null, default);
            });

            Assert.Equal(SolutionError.SolutionFileNotFound.Key, result.Key);
        }
Пример #2
0
        public async Task CheckArchitecturalConformanceAsync_Error_SolutionNotFound()
        {
            var testFileName = $"{Guid.NewGuid().ToString()}.sln";

            var result = await Assert.ThrowsAsync <SolutionException>(async() =>
            {
                await ErosionFinderMethods
                .CheckArchitecturalConformanceAsync(testFileName, null, default);
            });

            Assert.Equal(SolutionError.SolutionFileNotFound.Key, result.Key);
        }