Пример #1
0
        public void TrySetName_space()
        {
            string TestString = null;
            bool   state      = OrderValidator.TrySetName("ab c134", out TestString);

            Assert.IsTrue(state);
            Assert.AreEqual(TestString, "ab c134");
        }
Пример #2
0
        public void TrySetName_emptyString()
        {
            string TestString = null;
            bool   state      = OrderValidator.TrySetName(" ", out TestString);

            Assert.IsFalse(state);
            Assert.AreEqual(TestString, "");
        }
Пример #3
0
        public void TrySetName_invalidCharacter()
        {
            string TestString = null;
            bool   state      = OrderValidator.TrySetName("abc134?", out TestString);

            Assert.IsFalse(state);
            Assert.AreEqual(TestString, "");
        }