Exemple #1
0
        public void DecodeTooShortString()
        {
            string         data     = "40:tooshort";
            BEncodedString encoding = new BEncodedString(data);

            encoding.Decode();
        }
Exemple #2
0
        public void DecodeString()
        {
            string         data     = "11:test string";
            BEncodedString encoding = new BEncodedString(data);

            encoding.Decode();

            Assert.AreEqual(encoding.Value, "test string");
        }
Exemple #3
0
 public void DecodeTooShortString()
 {
     string data = "40:tooshort";
     BEncodedString encoding = new BEncodedString(data);
     encoding.Decode();
 }
Exemple #4
0
        public void DecodeString()
        {
            string data = "11:test string";
            BEncodedString encoding = new BEncodedString(data);
            encoding.Decode();

            Assert.AreEqual(encoding.Value, "test string");
        }