public void CreateInherit() { RegistryHive hive = RegistryHive.Create(new MemoryStream()); Store s = Store.Initialize(hive.Root); BcdObject obj = s.CreateInherit(InheritType.ApplicationObjects); Assert.NotEqual(Guid.Empty, obj.Identity); Assert.Equal(ObjectType.Inherit, obj.ObjectType); Assert.True(obj.IsInheritableBy(ObjectType.Application)); Assert.False(obj.IsInheritableBy(ObjectType.Device)); BcdObject reGet = s.GetObject(obj.Identity); Assert.Equal(obj.Identity, reGet.Identity); }