コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }