コード例 #1
0
        public void RemoveAzureVMChefExtensionExecuteChefCommand()
        {
            var getChefExtension = new RemoveAzureVMChefExtensionCommandStub()
            {
                CommandRuntime = mockCommandRuntime,
                VM             = mockIPersistentVM,
            };

            getChefExtension.ExecuteCommand();
            Assert.AreEqual(1, mockCommandRuntime.OutputPipeline.Count, "One item should be in the output pipeline");
        }
        public void RemoveAzureVMChefExtensionExecuteChefCommand()
        {

            var getChefExtension = new RemoveAzureVMChefExtensionCommandStub()
            {
                CommandRuntime = mockCommandRuntime,
                VM = mockIPersistentVM,
            };

            getChefExtension.ExecuteCommand();
            Assert.AreEqual(1, mockCommandRuntime.OutputPipeline.Count, "One item should be in the output pipeline");
        }