public void UpdateDependencies3() { // Use inputs from previous test. DependencyTestDriver.TestAndCompareOutput(nameof(UpdateDependencies3), async driver => { await driver.UpdateDependenciesAsync( new List <DependencyDetail> { new DependencyDetail { Commit = "4", Name = "Existing.DEPendency", RepoUri = "https://foo.com/foo/bar", Version = "4.5.6" } }); await driver.VerifyAsync(); }); }
public void AddProductDependency4() { DependencyTestDriver.TestAndCompareOutput(nameof(AddProductDependency4), async driver => { await driver.AddDependencyAsync( new DependencyDetail { Commit = "12345", Name = "Foo.Bar", RepoUri = "https://foo.com/foo/bar", Version = "1.2.3", Type = DependencyType.Product }); await driver.AddDependencyAsync( new DependencyDetail { Commit = "67890", Name = "Foo.Bar2", RepoUri = "https://foo.com/foo/bar", Version = "1.2.4", Pinned = true, Type = DependencyType.Product }); await driver.AddDependencyAsync( new DependencyDetail { Commit = "67890", Name = "Foo.Bar3", RepoUri = "https://foo.com/foo/bar", Version = "1.2.4", Type = DependencyType.Toolset }); await driver.VerifyAsync(); }); }