예제 #1
0
        public void TestValidBbPins()
        {
            var attr = new BbPinAttribute();

            Assert.IsTrue(attr.IsValid("223CEC0A"));
            Assert.IsTrue(attr.IsValid(null));
            Assert.IsTrue(attr.IsValid(String.Empty));
        }
예제 #2
0
        public void TestInvalidBbPins()
        {
            var attr = new BbPinAttribute();

            Assert.IsFalse(attr.IsValid("223CEC0"));
            Assert.IsFalse(attr.IsValid("223CEC0AA"));
            Assert.IsFalse(attr.IsValid(" "));
            Assert.IsFalse(attr.IsValid("\t"));
            Assert.IsFalse(attr.IsValid("\n"));
            Assert.IsFalse(attr.IsValid("\n \t"));
        }
예제 #3
0
        public void TestInvalidBbPins(string bbPin)
        {
            var attr = new BbPinAttribute();

            attr.IsValid(bbPin).Should().BeFalse();
        }