Exemplo n.º 1
0
        public void TestPeselDateFail()
        {
            PeselValid    target      = new PeselValid();
            PrivateObject obj         = new PrivateObject(target);
            var           retVal      = obj.Invoke("ValidateDateOfBirth", new object[] { "12220548385", new DateTime(1912, 2, 5) });
            var           expectedVal = false;

            Assert.AreEqual(expectedVal, retVal);
        }
Exemplo n.º 2
0
        public void TestPeselChecksumFail()
        {
            PeselValid    target      = new PeselValid();
            PrivateObject obj         = new PrivateObject(target);
            var           retVal      = obj.Invoke("ValidateChecksum", new object[] { "12220548386" });
            var           expectedVal = false;

            Assert.AreEqual(expectedVal, retVal);
        }
Exemplo n.º 3
0
        public void TestPeselGender()
        {
            PeselValid    target      = new PeselValid();
            PrivateObject obj         = new PrivateObject(target);
            var           retVal      = obj.Invoke("ValidateGender", new object[] { "12220548385", 1 });
            var           expectedVal = true;

            Assert.AreEqual(expectedVal, retVal);
        }