Example #1
0
    public void DeserializationWorks(byte[] expected, string input)
    {
        var bdc = new InheritorOfBaseDataWindow(new byte[expected.Length], expected.Length);

        bdc.TryDeserialize(input).Should().BeTrue();

        bdc.Data.Should().Equal(expected);
    }
Example #2
0
    public void SerializationWorks(byte[] input, string expected)
    {
        var bdc = new InheritorOfBaseDataWindow(input, input.Length);

        bdc.Serialize().Should().Be(expected);
    }