コード例 #1
0
        public void CreateDeleteGroupTest()
        {
            using (UndoContext context = UndoContext.Current)
            {
                context.Start();
                var client = new GraphTestBase();

                //Test
                Group group = client.CreateGroup();
                client.DeleteGroup(group.ObjectId);
                //verify the group has been deleted.
                Assert.Throws(typeof(CloudException), () => { client.SearchGroup(group.ObjectId); });
            }
        }
コード例 #2
0
        public void CreateDeleteGroupTest()
        {
            using (UndoContext context = UndoContext.Current)
            {
                context.Start();
                var client = new GraphTestBase();

                //Test
                Group group = client.CreateGroup();
                client.DeleteGroup(group.ObjectId);
                //verify the group has been deleted.
                Assert.Throws(typeof(CloudException), () => { client.SearchGroup(group.ObjectId); });
            }
        }