public void UpdateSolution_BeginTest()
        {
            IServiceProvider       serviceProvider = this.PrepareServiceProvider();
            UpdateSolutionListener target          = new UpdateSolutionListener(serviceProvider);
            int pfCancelUpdate         = 0;
            int pfCancelUpdateExpected = 0;
            int expected = VSConstants.E_NOTIMPL;
            int actual   = target.UpdateSolution_Begin(ref pfCancelUpdate);

            Assert.AreEqual(pfCancelUpdateExpected, pfCancelUpdate);
            Assert.AreEqual(expected, actual);
        }
示例#2
0
 public void UpdateSolution_BeginTest()
 {
     try
     {
         IServiceProvider       serviceProvider = this.PrepareServiceProvider();
         UpdateSolutionListener target          = new UpdateSolutionListener(serviceProvider);
         int pfCancelUpdate         = 0;
         int pfCancelUpdateExpected = 0;
         int expected = VSConstants.E_NOTIMPL;
         int actual   = target.UpdateSolution_Begin(ref pfCancelUpdate);
         Assert.AreEqual(pfCancelUpdateExpected, pfCancelUpdate);
         Assert.AreEqual(expected, actual);
     }
     catch (Exception ex)
     {
         // Use try catch to test a workaround on CI build (AppVeyor)
         Console.WriteLine(ex.Message);
     }
 }