Ejemplo n.º 1
0
        public void Commercial_CheckStringIsValid()
        {
            Assert.IsTrue(com.IsValidSublocation(Commercial.TYPE + stdSubLoc), "Basic location should be valid");
            Assert.IsFalse(com.IsValidSublocation(Civic.TYPE + stdSubLoc), "Wrong type of location should be invalid");
            Assert.IsFalse(com.IsValidSublocation(Residential.TYPE + stdSubLoc), "Wrong type of location should be invalid");
            Assert.IsFalse(com.IsValidSublocation(stdSubLoc), "No type of location should be invalid");

            foreach (Tuple <String, String> test in invalid)
            {
                Assert.IsFalse(com.IsValidSublocation(Commercial.TYPE + test.Item1), test.Item2);
            }
        }