Exemplo n.º 1
0
        private static int Main()
        {
            var tdsParser = new TdsParser();

            tdsParser.TdsLogin(App.MakeSqlLoginForRepro());

            uint computedLengthValue = tdsParser._physicalStateObj.ReadDwordFromPostHeaderContentAtByteOffset(0x0);

            if (computedLengthValue == 0x15e)
            {
                Console.WriteLine("Test passed.");
                return(100);
            }
            else
            {
                Console.WriteLine("Test failed: ComputedLength=({0:x8})", computedLengthValue);
            }
            return(101);
        }
Exemplo n.º 2
0
        private static int Main()
        {
            var tdsParser = new TdsParser();

            tdsParser.TdsLogin(App.MakeSqlLoginForRepro());

            uint computedLengthValue = tdsParser._physicalStateObj.ReadDwordFromPostHeaderContentAtByteOffset(0x0);

            if (computedLengthValue == 0x15e)
            {
                Console.WriteLine("Test passed.");
                return 100;
            }
            else
            {
                Console.WriteLine("Test failed: ComputedLength=({0:x8})", computedLengthValue);
            }
            return 101;
        }