public void ShouldThrowWhenSourceCannotBeParsed() { // Arrange var sut = new ParserFactory(); // Act var ex = Record.Exception(() => sut.Construct("file.name")); // Assert Assert.IsType <ArgumentException>(ex); }
public void ShouldReturnValidParserWhenProjectFileIsGiven() { // Arrange var sut = new ParserFactory(); const string filePath = "project.csproj"; // Act var actual = sut.Construct(filePath); // Assert Assert.NotNull(actual); }
public void ShouldReturnValidParserWhenSolutionIsGiven() { // Arrange var sut = new ParserFactory(); const string filePath = "solution.sln"; // Act var actual = sut.Construct(filePath); // Assert Assert.NotNull(actual); }
public void ShouldReturnValidParserWhenDirectoryIsGiven() { // Arrange var sut = new ParserFactory(); var folderPath = Directory.GetCurrentDirectory(); // Act var actual = sut.Construct(folderPath); // Assert Assert.NotNull(actual); }