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