public void Parse_WhenThereIsNoExtension_ShouldThrowArgumentException() { var sut = new Core.BuildDependencyDocumentParser.BuildDependencyDocumentParser(); var path = PathHelpers.ToFilePath(@"C:\Testing"); Assert.Throws <ArgumentException>(() => sut.Parse(path)); }
public void Parse_WhenExtensionIsValid_ShouldSucceed() { var sut = new Core.BuildDependencyDocumentParser.BuildDependencyDocumentParser(); var path = PathHelpers.ToFilePath(@"C:\SomeBuildDependencyDocument.bdd"); sut.Parse(path); }
public void Parse_WhenDocumentFilePathIsNull_ShouldThrowArgumentNullException() { var sut = new Core.BuildDependencyDocumentParser.BuildDependencyDocumentParser(); Assert.Throws <ArgumentNullException>(() => sut.Parse(null)); }