コード例 #1
0
        public void UpdateSolution_DoneTest()
        {
            IServiceProvider       serviceProvider = this.PrepareServiceProvider();
            UpdateSolutionListener target          = new UpdateSolutionListener(serviceProvider);
            int fSucceeded     = 0;
            int fModified      = 0;
            int fCancelCommand = 0;
            int expected       = VSConstants.E_NOTIMPL;
            int actual         = target.UpdateSolution_Done(fSucceeded, fModified, fCancelCommand);

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
 public void UpdateSolution_DoneTest()
 {
     try
     {
         IServiceProvider       serviceProvider = this.PrepareServiceProvider();
         UpdateSolutionListener target          = new UpdateSolutionListener(serviceProvider);
         int fSucceeded     = 0;
         int fModified      = 0;
         int fCancelCommand = 0;
         int expected       = VSConstants.E_NOTIMPL;
         int actual         = target.UpdateSolution_Done(fSucceeded, fModified, fCancelCommand);
         Assert.AreEqual(expected, actual);
     }
     catch (Exception ex)
     {
         // Use try catch to test a workaround on CI build (AppVeyor)
         Console.WriteLine(ex.Message);
     }
 }