Example #1
0
        public void IsolatedStorage_IncreaseQuotaTo()
        {
            NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();

            Assert.AreEqual(false, nais.IncreaseQuotaTo(-10), "#A0");
            Assert.AreEqual(false, nais.IncreaseQuotaTo(0), "#A1");
            Assert.AreEqual(false, nais.IncreaseQuotaTo(100), "#A2");
        }
Example #2
0
        public void IsolatedStorage()
        {
            NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();

            Assert.AreEqual(IsolatedStorageScope.None, nais.Scope, "Scope");
            Assert.AreEqual(Path.DirectorySeparatorChar, nais.PublicSeparatorExternal, "SeparatorExternal");
            Assert.AreEqual('.', nais.PublicSeparatorInternal, "SeparatorInternal");
        }
		public void IsolatedStorage_ApplicationIdentity ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			object o = nais.ApplicationIdentity;
		}
		public void IsolatedStorage_AssemblyUserDomain ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.Assembly | IsolatedStorageScope.User | IsolatedStorageScope.Domain, null, null);
		}
		public void IsolatedStorage_Machine ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.Machine, null, null);
		}
		public void IsolatedStorage_Assembly ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.Assembly, null, null);
		}
		public void IsolatedStorage_User ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.User, null, null);
		}
		public void IsolatedStorage_None_Null ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.None, null, null);
		}
		public void IsolatedStorage_AvailableFreeSpace ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			Console.WriteLine (nais.AvailableFreeSpace);
		}
Example #10
0
 public void IsolatedStorage_AssemblyUserDomain()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.Assembly | IsolatedStorageScope.User | IsolatedStorageScope.Domain, null, null);
 }
Example #11
0
 public void IsolatedStorage_Application()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.Application, null);
 }
Example #12
0
 public void IsolatedStorage_Machine()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.Machine, null, null);
 }
Example #13
0
 public void IsolatedStorage_Roaming()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.Roaming, null, null);
 }
Example #14
0
 public void IsolatedStorage_Assembly()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.Assembly, null, null);
 }
Example #15
0
 public void IsolatedStorage_Domain()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.Domain, null, null);
 }
		public void IsolatedStorage_CurrentSize ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			ulong ul = nais.CurrentSize;
		}
		public void IsolatedStorage_MaximumSize ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			ulong ul = nais.MaximumSize;
		}
Example #18
0
 public void IsolatedStorage_ApplicationIdentity()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();
     object o = nais.ApplicationIdentity;
 }
		public void IsolatedStorage_IncreaseQuotaTo ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			Assert.AreEqual (false, nais.IncreaseQuotaTo (-10), "#A0");
			Assert.AreEqual (false, nais.IncreaseQuotaTo (0), "#A1");
			Assert.AreEqual (false, nais.IncreaseQuotaTo (100), "#A2");
		}
Example #20
0
 public void IsolatedStorage_AssemblyIdentity()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();
     object o = nais.AssemblyIdentity;
 }
Example #21
0
 public void IsolatedStorage_User()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.User, null, null);
 }
Example #22
0
 public void IsolatedStorage_CurrentSize()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();
     ulong ul = nais.CurrentSize;
 }
		public void IsolatedStorage_Domain ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.Domain, null, null);
		}
Example #24
0
 public void IsolatedStorage_DomainIdentity()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();
     object o = nais.DomainIdentity;
 }
		public void IsolatedStorage_Roaming ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.Roaming, null, null);
		}
Example #26
0
 public void IsolatedStorage_MaximumSize()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();
     ulong ul = nais.MaximumSize;
 }
		public void IsolatedStorage_Application ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.Application, null);
		}
Example #28
0
        public void IsolatedStorage_UsedSize()
        {
            NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();

            Console.WriteLine(nais.UsedSize);
        }
		public void IsolatedStorage ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			Assert.AreEqual (IsolatedStorageScope.None, nais.Scope, "Scope");
			Assert.AreEqual (Path.DirectorySeparatorChar, nais.PublicSeparatorExternal, "SeparatorExternal");
			Assert.AreEqual ('.', nais.PublicSeparatorInternal, "SeparatorInternal");
		}
Example #30
0
        public void IsolatedStorage_AvailableFreeSpace()
        {
            NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();

            Console.WriteLine(nais.AvailableFreeSpace);
        }
		public void IsolatedStorage_AssemblyIdentity ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			object o = nais.AssemblyIdentity;
		}
Example #32
0
        public void IsolatedStorage_Quota()
        {
            NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();

            Console.WriteLine(nais.Quota);
        }
		public void IsolatedStorage_DomainIdentity ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			object o = nais.DomainIdentity;
		}
Example #34
0
 public void IsolatedStorage_Bad_Null()
 {
     IsolatedStorageScope       bad  = (IsolatedStorageScope)Int32.MinValue;
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(bad, null, null);
 }
		public void IsolatedStorage_UsedSize ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			Console.WriteLine (nais.UsedSize);
		}
Example #36
0
 public void IsolatedStorage_None_Null()
 {
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.None, null, null);
 }
		public void IsolatedStorage_Quota ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			Console.WriteLine (nais.Quota);
		}
Example #38
0
 public void IsolatedStorage_None()
 {
     Type t = typeof(object);
     NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage(IsolatedStorageScope.None, t, t);
 }
		public void IsolatedStorage_Bad_Null ()
		{
			IsolatedStorageScope bad = (IsolatedStorageScope)Int32.MinValue;
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (bad, null, null);
		}
Example #40
0
		public void IsolatedStorage_AssemblyIdentity ()
		{
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage ();
			Assert.IsNull (nais.AssemblyIdentity, "AssemblyIdentity");
		}
		public void IsolatedStorage_None ()
		{
			Type t = typeof (object);
			NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage (IsolatedStorageScope.None, t, t);
		}
Example #42
0
        public void IsolatedStorage_AssemblyIdentity()
        {
            NonAbstractIsolatedStorage nais = new NonAbstractIsolatedStorage();

            Assert.IsNull(nais.AssemblyIdentity, "AssemblyIdentity");
        }