Exemplo n.º 1
0
        public void SerializeIntAsSizedStringTest()
        {
            var expected = new SizedStringClass<int> {Value = 33};
            var actual = Roundtrip(expected, System.Text.Encoding.UTF8.GetBytes(expected.Value.ToString()));

            Assert.AreEqual(expected.Value, actual.Value);
        }
Exemplo n.º 2
0
    public void SerializeIntAsSizedStringTest()
    {
        var expected = new SizedStringClass <int> {
            Value = 33
        };
        var actual = Roundtrip(expected, System.Text.Encoding.UTF8.GetBytes(expected.Value.ToString()));

        Assert.AreEqual(expected.Value, actual.Value);
    }