コード例 #1
0
        public void Setup()
        {
            TunnelledClass tunnelMe = new TunnelledClass();

            tunnelMe.IntField = 42;
            tunnelMe.StringField = "Hello World!";
            tunnelMe.ADouble = 123.6d;
            tunnelMe.EnumField = TunnelledClass.TunnelNum.Three;

            _data = Serialiser.Tunnel(tunnelMe);
        }
コード例 #2
0
        public void TestSetup()
        {
            //byte[] bytes = new byte[512];

            //for (int i = 0; i < 256; i++)
            //{
            //    bytes[i] = (byte)i;
            //}

            //for (int i = 255; i >= 0; i--)
            //{
            //    bytes[511 - i] = (byte)i;
            //}

            _tunnelMe = new TunnelledClass(123);
            _tunnelMe.IntField = 42;
            _tunnelMe.StringField = "Hello World!";
            _tunnelMe.ADouble = 12.54d;
            _tunnelMe.EnumField = TunnelledClass.TunnelNum.Two;
            //_tunnelMe.Bytes = bytes;
        }