public void CreateDevice() { RegistryHive hive = RegistryHive.Create(new MemoryStream()); Store s = Store.Initialize(hive.Root); BcdObject obj = s.CreateDevice(); Assert.AreNotEqual(Guid.Empty, obj.Identity); Assert.AreEqual(ObjectType.Device, obj.ObjectType); BcdObject reGet = s.GetObject(obj.Identity); Assert.AreEqual(obj.Identity, reGet.Identity); }