Exemplo n.º 1
0
        public void BaseRef_IsValid_O_NotValid()
        {
            BaseRef tested = new BaseRef();
            var     result = tested.IsValid("O");

            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void BaseRef_IsValid_StringWithDefault_NotValid()
        {
            BaseRef tested = new BaseRef();
            var     result = tested.IsValid(default(char) + "$$");

            Assert.IsFalse(result);
        }
Exemplo n.º 3
0
        public void BaseRef_IsValid_Empty()
        {
            BaseRef tested = new BaseRef();
            var     result = tested.IsValid("");

            Assert.IsTrue(result);
        }
Exemplo n.º 4
0
        public void BaseRef_Decode_Test11()
        {
            BaseRef tested = new BaseRef();
            int     result = tested.Decode("xx");

            Assert.AreEqual(783, result);
        }
Exemplo n.º 5
0
        public void BaseRef_Decode_Test13()
        {
            BaseRef tested = new BaseRef();
            int     result = tested.Decode("-AX");

            Assert.Inconclusive();
        }
Exemplo n.º 6
0
        public void BaseRef_Decode_Test9()
        {
            BaseRef tested = new BaseRef();
            int     result = tested.Decode("100");

            Assert.AreEqual(784, result);
        }
Exemplo n.º 7
0
        public void BaseRef_Decode_Test10()
        {
            BaseRef tested = new BaseRef();
            int     result = tested.Decode("a");

            Assert.AreEqual(10, result);
        }
Exemplo n.º 8
0
        public void BaseRef_Decode_Test4()
        {
            BaseRef tested = new BaseRef();
            int     result = tested.Decode("X");

            Assert.AreEqual(27, result);
        }
Exemplo n.º 9
0
        public void BaseRef_Decode_Test7()
        {
            BaseRef tested = new BaseRef();
            int     result = tested.Decode("20");

            Assert.AreEqual(56, result);
        }
Exemplo n.º 10
0
        public void BaseRef_Encode_Test11()
        {
            BaseRef tested = new BaseRef();
            string  result = tested.Encode(-14);

            Assert.Inconclusive();
        }
Exemplo n.º 11
0
        public void BaseRef_Encode_Test10()
        {
            BaseRef tested = new BaseRef();
            string  result = tested.Encode(784);

            Assert.AreEqual("100", result);
        }
Exemplo n.º 12
0
        public void BaseRef_Encode_Test9()
        {
            BaseRef tested = new BaseRef();
            string  result = tested.Encode(783);

            Assert.AreEqual("XX", result);
        }
Exemplo n.º 13
0
        public void BaseRef_Encode_Test8()
        {
            BaseRef tested = new BaseRef();
            string  result = tested.Encode(56);

            Assert.AreEqual("20", result);
        }
Exemplo n.º 14
0
        public void BaseRef_IsValid_String1_Valid()
        {
            BaseRef tested = new BaseRef();
            var     result = tested.IsValid("5FF90");

            Assert.IsTrue(result);
        }