System.IO.IsolatedStorage.IdentityTests.DomainIdentityIsSet C# (CSharp) Method

DomainIdentityIsSet() public method

public DomainIdentityIsSet ( IsolatedStorageScope scope ) : void
scope IsolatedStorageScope
return void
        public void DomainIdentityIsSet(IsolatedStorageScope scope)
        {
            TestStorage storage = new TestStorage(scope);
            Assert.NotNull(storage.AssemblyIdentity);
            Assert.NotNull(storage.DomainIdentity);
            Assert.Throws<InvalidOperationException>(() => storage.ApplicationIdentity);
        }
    }