コード例 #1
0
        public void adjustForNameSearch_Emtpy()
        {
            string target = "";
            string result = VistaUtils.adjustForNameSearch(target);

            Assert.AreEqual("", result);
        }
コード例 #2
0
        public void adjustForNameSearch_Null()
        {
            string target = null;
            string result = VistaUtils.adjustForNameSearch(target);

            Assert.IsNull(result);
        }
コード例 #3
0
        public void adjustForNameSearch()
        {
            string target = "hans tischner";
            string result = VistaUtils.adjustForNameSearch(target);

            Assert.AreEqual("hans tischneq~", result);

            target = "sam two toes";
            result = VistaUtils.adjustForNameSearch(target);
            Assert.AreEqual("sam two toer~", result);

            target = "1234";
            result = VistaUtils.adjustForNameSearch(target);
            Assert.AreEqual("1233~", result);

            target = "!@#$%^&*()";
            result = VistaUtils.adjustForNameSearch(target);
            Assert.AreEqual("!@#$%^&*((~", result);
        }