Ejemplo n.º 1
0
        public void BusinessCountry_WithInvalidMembers_IsNotUpdateValid()
        {
            //Arrange: A country with invalid short and long name is created.
            BCountry country = new BCountry{
                Long_Name = "Canadaaaaaaaaaaaaa",
                Short_Name = "CAA"
            };

            //Act: The country is checked to be valid for updating.
            bool valid = country.UpdateValid();

            //Assert: The country is not valid for updating.
            Assert.AreEqual(false, valid);
        }