public void OUManagerConstructorTest() { OUManager_Accessor target = new OUManager_Accessor(); string fqdn = "System"; bool expected = true; bool actual; actual = target.Exist(fqdn); Assert.AreEqual(expected, actual); fqdn = "SystemFalse"; expected = false; actual = target.Exist(fqdn); Assert.AreEqual(expected, actual); }
public void ExistTest() { //Test 1 OUManager_Accessor target = new OUManager_Accessor(); string fqdn = "System"; bool expected = true; bool actual; actual = target.Exist(fqdn); Assert.AreEqual(expected, actual); //Test 2 target = new OUManager_Accessor(); fqdn = "SystemFalse"; //not in DB expected = false; actual = target.Exist(fqdn); Assert.AreEqual(expected, actual); }