Example #1
0
        public void TestWriteToBytes()
        {
            ByteField field = new ByteField(0);

            byte[] array = new byte[1];

            for (int j = 0; j < _test_array.Length; j++)
            {
                field.Value = _test_array[j];
                field.WriteToBytes(array);
                Assert.AreEqual(_test_array[j], array[0], "testing ");
            }
        }