コード例 #1
0
        public void DeletePlanIfExist_Given_ValidPlanId_Deletes_Plan()
        {
            var planId = PowerManager.DuplicatePlan(_balancedPlanGuid, _nonExistentPlanGuid1);

            PowerManager.DeletePlanIfExists(planId);
            var stillExists = PowerManager.PlanExists(planId);

            Assert.IsFalse(stillExists);
        }
コード例 #2
0
 public void DeletePlanIfExists_Given_NonExistentPlanId_Throws_Nothing()
 {
     PowerManager.DeletePlanIfExists(_nonExistentPlanGuid1);
     Assert.IsTrue(true); // Just checking that we didn't throw an error
 }