public void GetInputFileNuSpecAndProjectFilePrefersProjectFile() { // Act string file = PackCommand.GetInputFile(new[] { "a.nuspec", "foo.csproj" }); // Assert Assert.Equal("foo.csproj", file); }
public void GetInputFileMultipleNuSpecFilesThrows() { ExceptionAssert.Throws <CommandLineException>(() => PackCommand.GetInputFile(new[] { "a.nuspec", "b.NuspeC" }), "Please specify a nuspec or project file to use."); }
public void GetInputFileThrowsIfNoFiles() { ExceptionAssert.Throws <CommandLineException>(() => PackCommand.GetInputFile(Enumerable.Empty <string>()), "Please specify a nuspec or project file to use."); }