Exemple #1
0
        public void ReadWriteInt32_WithTestCases_ProducesCorrectResults(int input)
        {
            var stream  = new MemoryStream();
            var encoder = new DataEncoder();

            encoder.WriteInt32(stream, input);
            stream.Position = 0;
            var output = encoder.ReadInt32(stream);

            Assert.That(output, Is.EqualTo(input));
        }