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); }); } }
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); }); } }