Example #1
0
        public void URLに使えない文字を含むTag()
        {
            var tag = new Tag {Text = "<#>"};

            Assert.AreEqual(tag.Text, "___");
            Assert.AreEqual(tag.Hash, "___".GetHashCode());
        }
Example #2
0
        public void URLに使えない文字を含まない日本語()
        {
            var tag = new Tag { Text = "タグ" };

            Assert.AreEqual(tag.Text, "タグ");
            Assert.AreEqual(tag.Hash, "タグ".GetHashCode());
        }
Example #3
0
        public void URLに使えない文字を含むTagその3()
        {
            var tag = new Tag { Text = "ta/gs" };

            Assert.AreEqual(tag.Text, "ta_gs");
            Assert.AreEqual(tag.Hash, "ta_gs".GetHashCode());
        }