public void Should_be_to_generate_environmentvariable_items_from_an_simple_object()
         {
             var fakeOvalObject = ProbeHelper.GetDefinitionObjectTypeByID("definitionsSimple.xml", "2360");
             var itemsToCollect = new EnvironmentVariableItemTypeGenerator().GetItemsToCollect(fakeOvalObject, null).ToArray();

             ItemTypeChecker.DoBasicAssertForItems(itemsToCollect, 1, typeof(environmentvariable_item));
             Assert.AreEqual("PATH", ((environmentvariable_item)itemsToCollect.Single()).name.Value);
         }
        public void Should_be_possible_to_generate_environmentvariable_items_fron_an_object_with_referenced_variable()
        {
            var fakeOvalObject = ProbeHelper.GetDefinitionObjectTypeByID("definitionsSimple.xml", "2370");
             var fakeVariables = VariableHelper.CreateVariableWithOneValue("2370", "2370", "CWD");

             var itemsToCollect = new EnvironmentVariableItemTypeGenerator().GetItemsToCollect(fakeOvalObject, fakeVariables).ToArray();

             ItemTypeChecker.DoBasicAssertForItems(itemsToCollect, 1, typeof(environmentvariable_item));
             Assert.AreEqual("CWD", ((environmentvariable_item)itemsToCollect.Single()).name.Value);
        }