Esempio n. 1
0
        public void BuildCondition_With_WhiteSpace_Value()
        {
            // act
            var res = LdapHelps.BuildCondition("objectClass", "   ");

            // assert
            res.ShouldBeEmpty();
        }
Esempio n. 2
0
        public void BuildCondition_With_Value()
        {
            // act
            var res = LdapHelps.BuildCondition("objectClass", "testNameA");

            // assert
            res.ShouldBe("(objectClass=testNameA)");
        }
Esempio n. 3
0
        public void BuildCondition_With_Null_Value()
        {
            // act
            var res = LdapHelps.BuildCondition("objectClass", null);

            // assert
            res.ShouldBeEmpty();
        }