Example #1
0
 public void UpdateDependencies2()
 {
     // Use inputs from previous test.
     DependencyTestDriver.TestNoCompare(nameof(UpdateDependencies1), async driver =>
     {
         await Assert.ThrowsAsync <DependencyException>(async() => await driver.UpdateDependenciesAsync(
                                                            new List <DependencyDetail> {
             new DependencyDetail
             {
                 Commit  = "4",
                 Name    = "Foo.Bar",
                 RepoUri = "https://foo.com/foo/bar",
                 Version = "4.5.6"
             }
         }));
     });
 }
 public async Task UpdateDependencies2()
 {
     // Use inputs from previous test.
     await DependencyTestDriver.TestNoCompare(nameof(UpdateDependencies1), async driver =>
     {
         await(((System.Func <Task>)(async() => await driver.UpdateDependenciesAsync(
                                         new List <DependencyDetail> {
             new DependencyDetail
             {
                 Commit = "4",
                 Name = "Foo.Bar",
                 RepoUri = "https://foo.com/foo/bar",
                 Version = "4.5.6"
             }
         })))).Should().ThrowExactlyAsync <DependencyException>();
     });
 }