public void TestFindOneByCN() { using (var containerObject = ContainerObject.FindOneByCN(this.ADOperator, this.ContainerCN)) { foreach (UserObject userObject in containerObject.Users) { Console.WriteLine(userObject.Name); Console.WriteLine(userObject.DistinguishedName); Console.WriteLine(userObject.Type); } foreach (ContactObject contactObject in containerObject.Contacts) { Console.WriteLine(contactObject.Name); Console.WriteLine(contactObject.DistinguishedName); Console.WriteLine(contactObject.Type); } foreach (ComputerObject computerObject in containerObject.Computers) { Console.WriteLine(computerObject.Name); Console.WriteLine(computerObject.DistinguishedName); Console.WriteLine(computerObject.Type); } Assert.AreEqual(this.ContainerDescription, containerObject.Description); } }