public void TestDeserialization()
        {
            byte[] serialized = TMemoryBuffer.Serialize(Fixtures.oneOfEach);

            Stopwatch stopwatch = new Stopwatch();
            stopwatch.Start();

            for (int i = 0; i < HOW_MANY; i++)
            {
                OneOfEach o = new OneOfEach();
                TProtocol proto = new TBinaryProtocol.Factory().GetProtocol(new TMemoryBuffer(serialized));
                o.Read(proto);
            }

            stopwatch.Stop();

            Console.WriteLine("Serialization test time : {0} ms", stopwatch.ElapsedMilliseconds);

        }
        public void TestSerialization()
        {
            OneOfEach oneOfEach = Fixtures.oneOfEach;

            TTransport trans = new SinkTransport();

            TProtocol proto = new TBinaryProtocol.Factory().GetProtocol(trans);

            Stopwatch stopwatch = new Stopwatch();
            stopwatch.Start();

            for (int i = 0; i < HOW_MANY; i++)
            {
                oneOfEach.Write(proto);
            }

            stopwatch.Stop();

            Console.WriteLine("Serialization test time : {0} ms", stopwatch.ElapsedMilliseconds);
        }