public void TestPromotePrincipal()
 {
     SecurePrincipal u = new SecurePrincipal();
     u.Promote(new string[] {"r1", "r2"});
     Assert.AreEqual(2, u.AllRoles.Count());
     Assert.IsTrue(u.IsInRole("r1"));
     Assert.IsTrue(u.IsInRole("r2"));
 }
        public void TestPromotePrincipal()
        {
            SecurePrincipal u = new SecurePrincipal();

            u.Promote(new string[] { "r1", "r2" });
            Assert.AreEqual(2, u.AllRoles.Count());
            Assert.IsTrue(u.IsInRole("r1"));
            Assert.IsTrue(u.IsInRole("r2"));
        }