Escape() public method

public Escape ( string value ) : string
value string
return string
        public void ShouldEscapeASpace()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape("What happened");

            Assert.AreEqual("[What happened]", escaped);
        }
        public void ShouldNotEscapeOther()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape("other");

            Assert.AreEqual("other", escaped);
        }
        public void ShouldEscapeOnlyKeyword()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape(new string[] {"other","database"});

            Assert.AreEqual(new string[]{"other","[database]"}, escaped);
        }
        public void ShouldEscapeDatabase()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape("database");

            Assert.AreEqual("[database]", escaped);
        }
        public void ShouldEscapeUser()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape("user");

            Assert.AreEqual("[user]", escaped);
        }
        public void ShouldEscapeMixedCaseGroup()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape("Group");

            Assert.AreEqual("[Group]", escaped);
        }
        public void ShouldEscapeSlashes()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape("Today/Tomorrow");

            Assert.AreEqual("[Today/Tomorrow]", escaped);
        }
        public void ShouldEscapeQuestionMarks()
        {
            var g = new ColumnHeaderKeywordEscapingStrategy();
            var escaped = g.Escape("When?");

            Assert.AreEqual("[When?]", escaped);
        }