public void EmptyTest()
        {
            var c = new ConstantStringLengthProperty() { StringWith5Chars = "" };
            var res = Utils.SerializeDeserialize(c);

            Assert.AreEqual(res.StringWith5Chars, new string(' ', 5));
        }
        public void LongerTest()
        {
            var c = new ConstantStringLengthProperty() { StringWith5Chars = "0123456789123456789" };
            var res = Utils.SerializeDeserialize(c);

            Assert.AreEqual(res.StringWith5Chars, "01234");
        }
 public void CString1_Test()
 {
     var c = new ConstantStringLengthProperty();
     Utils.TestRoundTrip(c, "CString1");
 }
 public void CString4_Test()
 {
     var c = new ConstantStringLengthProperty() { StringWith5Chars = "01234" };
     Utils.TestRoundTrip(c, "CString4");
 }
        public void SameLengthTest()
        {
            var c = new ConstantStringLengthProperty() { StringWith5Chars = "01234" };
            var res = Utils.SerializeDeserialize(c);

            Assert.AreEqual(res.StringWith5Chars, c.StringWith5Chars);
        }