private static void CompareMachines(Machine machine, Machine newmachine) { Assert.IsNotNull(newmachine.UndefinedObjectClass); Assert.IsNotNull(newmachine.GetGlobalObject("UndefinedObject")); Assert.AreNotEqual(machine.GetGlobalObject("UndefinedObject"), newmachine.GetGlobalObject("UndefinedObject")); var names = machine.GetGlobalNames(); var newnames = machine.GetGlobalNames(); Assert.IsNotNull(newnames); Assert.AreEqual(names.Count, newnames.Count); foreach (var newname in newnames) Assert.IsTrue(names.Contains(newname)); }