Esempio n. 1
0
        public void EmptyCharacterString()
        {
            CharacterString characterString = new CharacterString(new byte[0]);

            byte[] content = Helper.ReadFixture("CharacterString", "empty-string");

            Assert.Equal(content, characterString.ToArray());
            Assert.Equal("", characterString.ToString());
        }
Esempio n. 2
0
        public void SimpleCharacterString()
        {
            CharacterString characterString = new CharacterString("www");

            byte[] content = Helper.ReadFixture("CharacterString", "www-string");

            Assert.Equal(content, characterString.ToArray());
            Assert.Equal("www", characterString.ToString());
        }