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

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