Avro.Test.BinaryEncodingTests.TestBoolean C# (CSharp) Method

TestBoolean() private method

private TestBoolean ( ) : void
return void
        public void TestBoolean()
        {
            

            for (int i = 0; i < ITERATIONS; i++)
            {
                bool expectedValue = random.Next() % 2 ==0;
                MemoryStream iostr = new MemoryStream();
                
                BinaryEncoder.Instance.WriteBoolean(iostr, expectedValue);
                
                iostr.Position = 0;
                
                bool actual = BinaryDecoder.Instance.ReadBool(iostr);
                Assert.AreEqual(expectedValue, actual, "Iteration {0:###,###,###,##0}", i);
            }
        }
        [Test]