GetSet() 공개 메소드

public GetSet ( int index ) : PermissionSet
index int
리턴 PermissionSet
예제 #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");
		}
예제 #2
0
		public void GetSet_Zero_Empty ()
		{
			PermissionSetCollection psc = new PermissionSetCollection ();
			psc.GetSet (0);
		}
예제 #3
0
		public void GetSet_MaxInt ()
		{
			PermissionSetCollection psc = new PermissionSetCollection ();
			psc.GetSet (Int32.MaxValue);
		}
예제 #4
0
		public void GetSet_Negative ()
		{
			PermissionSetCollection psc = new PermissionSetCollection ();
			psc.GetSet (-1);
		}