Versioning
This commit is contained in:
@ -57,19 +57,19 @@ dataTable.Rows.Add(dataRow);
|
||||
Assert.NotNull(vm.Resources);
|
||||
}
|
||||
[Fact]
|
||||
public async Task TestPush()
|
||||
public void TestPush()
|
||||
{
|
||||
Program.LoadConfig();
|
||||
var report = await Program.PushPkgAsync(new string[] { "/home/paul/Nupkgs/Yavsc.Abstract.1.0.8.nupkg" });
|
||||
var report = Program.PushPkg(new string[] { "/home/paul/Nupkgs/Yavsc.Abstract.1.0.8.nupkg" });
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetServerResourcesUsingHttpClientAsyncTest()
|
||||
{
|
||||
var model = await SourceHelpers.GetServerResourcesAsync("Http://isn.pschneider.fr/index.json");
|
||||
var model = SourceHelpers.GetServerResources("Http://isn.pschneider.fr/index.json");
|
||||
Console.WriteLine(JsonConvert.SerializeObject(model));
|
||||
Assert.NotNull(model.Resources);
|
||||
var pub = model.Resources.FirstOrDefault((r) => r.Type == "PackagePublish/3.5.0");
|
||||
var pub = model.Resources.FirstOrDefault((r) => r.Type.StartsWith("PackagePublish/"));
|
||||
Assert.True(pub!=null);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user