Beispiel #1
0
        public void GetInputFileNuSpecAndProjectFilePrefersProjectFile()
        {
            // Act
            string file = PackCommand.GetInputFile(new[] { "a.nuspec", "foo.csproj" });

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