예제 #1
0
 private void ValidateMarketplaceVMPlanField(VirtualMachine vm, VirtualMachineImage img)
 {
     if (vm.Plan != null)
     {
         Assert.True(vm.Plan.Name != null);
         Assert.True(vm.Plan.Product != null);
         Assert.True(vm.Plan.PromotionCode != null);
     }
 }
 private void ValidateMarketplaceVMPlanField(VirtualMachine vm, VirtualMachineImage img)
 {
     Assert.NotNull(vm.Plan);
     Assert.Equal(img.PurchasePlan.Publisher, vm.Plan.Publisher);
     Assert.Equal(img.PurchasePlan.Product, vm.Plan.Product);
     Assert.Equal(img.PurchasePlan.Name, vm.Plan.Name);
 }