Example #1
0
        public void TrySetRequestID_invalidCharacter()
        {
            long number;
            bool state = OrderValidator.TrySetRequestID("f", out number);

            Assert.IsFalse(state);
        }
Example #2
0
        public void TrySetRequestID_negativeNumber()
        {
            long number;
            bool state = OrderValidator.TrySetRequestID("-3", out number);

            Assert.IsFalse(state);
        }
Example #3
0
        public void TrySetRequestID_emptyLong()
        {
            long number;
            bool state = OrderValidator.TrySetRequestID("", out number);

            Assert.IsFalse(state);
        }
Example #4
0
        public void TrySetRequestID_number()
        {
            long number;
            bool state = OrderValidator.TrySetRequestID("3", out number);

            Assert.IsTrue(state);
            Assert.AreEqual(number, 3);
        }