Esempio n. 1
0
        public void SerializeOrderConsistencyTest()
        {
            var data = new OrderTestStruct {
                Value1 = 1, Value2 = 2, Value3 = 3, Str = "abcde"
            };
            var actual   = Serializer.Serialize(data);
            var expected = new byte[] { 1, 2, 3, (byte)'a', (byte)'b', (byte)'c', (byte)'d', (byte)'e', 0, 0, 0 };

            Assert.IsTrue(actual.SequenceEqual(expected), $"Actual: {string.Join(",", actual)}, Expected: {string.Join(",", expected)}");
            SerializeConsistencyTest(FixedStringStruct.GetDefault());
        }
Esempio n. 2
0
 public void DeserializeTest_FixedStringStruct()
 {
     DeserializeTest(FixedStringStruct.GetDefault());
 }
Esempio n. 3
0
 public void SerializeConsistencyTest_FixedStringStruct()
 {
     SerializeConsistencyTest(FixedStringStruct.GetDefault());
 }