Ejemplo n.º 1
0
        public void ValidMethodOK()
        {
            clsCostumer aCostumer = new clsCostumer();
            string      Error     = "";

            Error = aCostumer.Valid(CostumerID, Name, CostumerAddress, CostumerDOB, Email, Active);
            Assert.AreEqual(Error, "");
        }
Ejemplo n.º 2
0
        public void EmailMinPlusOne()
        {
            clsCostumer aCostumer = new clsCostumer();
            string      Error     = "";

            Email = "aa";
            Error = aCostumer.Valid(CostumerID, Name, CostumerAddress, CostumerDOB, Email, Active);
            Assert.AreEqual(Error, "");
        }
Ejemplo n.º 3
0
        public void CostumerAddressMinLessOne()
        {
            clsCostumer aCostumer = new clsCostumer();
            string      Error     = "";

            CostumerAddress = "";
            Error           = aCostumer.Valid(CostumerID, Name, CostumerAddress, CostumerDOB, Email, Active);
            Assert.AreNotEqual(Error, "");
        }
Ejemplo n.º 4
0
        public void EmailEXMax()
        {
            clsCostumer aCostumer = new clsCostumer();
            string      Error     = "";

            Email = "";
            Email = Email.PadRight(500, 'a');
            Error = aCostumer.Valid(CostumerID, Name, CostumerAddress, CostumerDOB, Email, Active);
            Assert.AreNotEqual(Error, "");
        }
Ejemplo n.º 5
0
        public void CostumerAddressMid()
        {
            clsCostumer aCostumer = new clsCostumer();
            string      Error     = "";

            CostumerAddress = "";
            CostumerAddress = CostumerAddress.PadRight(25, 'a');
            Error           = aCostumer.Valid(CostumerID, Name, CostumerAddress, CostumerDOB, Email, Active);
            Assert.AreEqual(Error, "");
        }
Ejemplo n.º 6
0
        public void NameMaxPlusOne()
        {
            clsCostumer aCostumer = new clsCostumer();
            string      Error     = "";

            Name  = "";
            Name  = Name.PadRight(51, 'a');
            Error = aCostumer.Valid(CostumerID, Name, CostumerAddress, CostumerDOB, Email, Active);
            Assert.AreNotEqual(Error, "");
        }
Ejemplo n.º 7
0
        public void CostumerDOBEXMin()
        {
            clsCostumer aCostumer = new clsCostumer();
            string      Error     = "";
            DateTime    TestDate;

            TestDate    = DateTime.Now.Date;
            CostumerDOB = TestDate.ToString();
            Error       = aCostumer.Valid(CostumerID, Name, CostumerAddress, CostumerDOB, Email, Active);
            Assert.AreEqual(Error, "");
        }