GetSet() public method

public GetSet ( int index ) : PermissionSet
index int
return PermissionSet
Exemplo n.º 1
0
		public void GetSet ()
		{
			PermissionSetCollection psc = new PermissionSetCollection ();
			PermissionSet unr = new PermissionSet (PermissionState.Unrestricted);
			psc.Add (unr);
			PermissionSet ps = psc.GetSet (0);
			Assert.AreEqual (unr.ToString (), ps.ToString (), "Same XML");
			Assert.IsTrue (Object.ReferenceEquals (unr, ps), "Same Object Reference");
		}
Exemplo n.º 2
0
		public void GetSet_Zero_Empty ()
		{
			PermissionSetCollection psc = new PermissionSetCollection ();
			psc.GetSet (0);
		}
Exemplo n.º 3
0
		public void GetSet_MaxInt ()
		{
			PermissionSetCollection psc = new PermissionSetCollection ();
			psc.GetSet (Int32.MaxValue);
		}
Exemplo n.º 4
0
		public void GetSet_Negative ()
		{
			PermissionSetCollection psc = new PermissionSetCollection ();
			psc.GetSet (-1);
		}