public void isValidNameTest() { UserVariable target = new UserVariable(); Assert.AreEqual(true, target.isValidName("name")); Assert.AreEqual(true, target.isValidName("n")); Assert.AreEqual(true, target.isValidName("name0")); Assert.AreEqual(true, target.isValidName("name_n")); Assert.AreEqual(false, target.isValidName("0name")); Assert.AreEqual(false, target.isValidName("")); Assert.AreEqual(false, target.isValidName("na%me")); Assert.AreEqual(false, target.isValidName("name ")); }