Exemple #1
0
        public long TransactionIDGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            long result = target.TransactionID;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.TransactionIDGet(ProfilerEvent)
        }
Exemple #2
0
        public int ClientProcessIDGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            int result = target.ClientProcessID;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.ClientProcessIDGet(ProfilerEvent)
        }
Exemple #3
0
        public DateTime StartTimeGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            DateTime result = target.StartTime;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.StartTimeGet(ProfilerEvent)
        }
Exemple #4
0
        public string SessionLoginNameGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            string result = target.SessionLoginName;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.SessionLoginNameGet(ProfilerEvent)
        }
Exemple #5
0
        public int SourceDatabaseIDGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            int result = target.SourceDatabaseID;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.SourceDatabaseIDGet(ProfilerEvent)
        }
Exemple #6
0
        public long BigintData2Get([PexAssumeUnderTest] ProfilerEvent target)
        {
            long result = target.BigintData2;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.BigintData2Get(ProfilerEvent)
        }
Exemple #7
0
        public int TypeGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            int result = target.Type;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.TypeGet(ProfilerEvent)
        }
Exemple #8
0
        public Guid GUIDGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            Guid result = target.GUID;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.GUIDGet(ProfilerEvent)
        }
Exemple #9
0
        public string LinkedServerNameGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            string result = target.LinkedServerName;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.LinkedServerNameGet(ProfilerEvent)
        }
Exemple #10
0
        public long XactSequenceGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            long result = target.XactSequence;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.XactSequenceGet(ProfilerEvent)
        }
Exemple #11
0
        public long WritesGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            long result = target.Writes;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.WritesGet(ProfilerEvent)
        }
Exemple #12
0
        public bool ColumnIsSet([PexAssumeUnderTest] ProfilerEvent target, int columnId)
        {
            bool result = target.ColumnIsSet(columnId);

            return(result);
            // TODO: add assertions to method ProfilerEventTest.ColumnIsSet(ProfilerEvent, Int32)
        }
Exemple #13
0
        public int ColumnPermissionsGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            int result = target.ColumnPermissions;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.ColumnPermissionsGet(ProfilerEvent)
        }
Exemple #14
0
        public ProfilerEvent Constructor()
        {
            ProfilerEvent target = new ProfilerEvent();

            return(target);
            // TODO: add assertions to method ProfilerEventTest.Constructor()
        }
Exemple #15
0
        public string TextDataGet([PexAssumeUnderTest] ProfilerEvent target)
        {
            string result = target.TextData;

            return(result);
            // TODO: add assertions to method ProfilerEventTest.TextDataGet(ProfilerEvent)
        }
        public ProfilerEvent Next([PexAssumeUnderTest] RawTraceReader target)
        {
            ProfilerEvent result = target.Next();

            return(result);
            // TODO: add assertions to method RawTraceReaderTest.Next(RawTraceReader)
        }
Exemple #17
0
        /// <summary>
        /// Next instance.
        /// </summary>
        /// <returns>the next instance</returns>
        public ProfilerEvent Next()
        {
            if (!this.TraceIsActive)
            {
                return(null);
            }

            int columnid = (int)this.reader[0];

            ////skip to begin of new event
            while (columnid != 65526 && this.Read() && this.TraceIsActive)
            {
                columnid = (int)this.reader[0];
            }

            ////start of new event
            if (columnid != 65526)
            {
                return(null);
            }

            if (!this.TraceIsActive)
            {
                return(null);
            }

            ////get potential event class
            this.reader.GetBytes(2, 0, this.b2, 0, 2);
            int eventClass = ToInt16(this.b2);

            ////we got new event
            if (eventClass >= 0 && eventClass < 255)
            {
                ProfilerEvent evt = new ProfilerEvent();
                evt.EventObjects[27] = eventClass;
                evt.ColumnMask      |= 1 << 27;
                while (this.Read())
                {
                    columnid = (int)this.reader[0];
                    if (columnid > 64)
                    {
                        return(evt);
                    }

                    this.EventDelegates[columnid](evt, columnid);
                }
            }

            this.Read();
            return(null);
        }
Exemple #18
0
        /// <summary>
        /// Sets the date time column.
        /// </summary>
        /// <param name="evt">The event.</param>
        /// <param name="columnid">The column id.</param>
        private void SetDateTimeColumn(ProfilerEvent evt, int columnid)
        {
            ////2 byte - year
            ////2 byte - month
            ////2 byte - ???
            ////2 byte - day
            ////2 byte - hour
            ////2 byte - min
            ////2 byte - sec
            ////2 byte - msec
            this.reader.GetBytes(2, 0, this.b16, 0, 16);
            int year  = this.b16[0] | this.b16[1] << 8;
            int month = this.b16[2] | this.b16[3] << 8;
            int day   = this.b16[6] | this.b16[7] << 8;
            int hour  = this.b16[8] | this.b16[9] << 8;
            int min   = this.b16[10] | this.b16[11] << 8;
            int sec   = this.b16[12] | this.b16[13] << 8;
            int msec  = this.b16[14] | this.b16[15] << 8;

            evt.EventObjects[columnid] = new DateTime(year, month, day, hour, min, sec, msec);
            evt.ColumnMask            |= (ulong)1 << columnid;
        }
Exemple #19
0
 public byte[] SqlHandleGet([PexAssumeUnderTest] ProfilerEvent target)
 {
     byte[] result = target.SqlHandle;
     return(result);
     // TODO: add assertions to method ProfilerEventTest.SqlHandleGet(ProfilerEvent)
 }
Exemple #20
0
 /// <summary>
 /// Sets the string column.
 /// </summary>
 /// <param name="evt">The event.</param>
 /// <param name="columnid">The column id.</param>
 private void SetStringColumn(ProfilerEvent evt, int columnid)
 {
     evt.EventObjects[columnid] = Encoding.Unicode.GetString((byte[])this.reader[2]);
     evt.ColumnMask            |= 1UL << columnid;
 }
Exemple #21
0
 /// <summary>
 /// Sets the byte column.
 /// </summary>
 /// <param name="evt">The event.</param>
 /// <param name="columnid">The column id.</param>
 private void SetByteColumn(ProfilerEvent evt, int columnid)
 {
     byte[] b = new byte[(int)this.reader[1]];
     evt.EventObjects[columnid] = b;
     evt.ColumnMask            |= 1UL << columnid;
 }
Exemple #22
0
 /// <summary>
 /// Sets the integer column.
 /// </summary>
 /// <param name="evt">The event.</param>
 /// <param name="columnid">The column id.</param>
 private void SetIntColumn(ProfilerEvent evt, int columnid)
 {
     this.reader.GetBytes(2, 0, this.b4, 0, 4);
     evt.EventObjects[columnid] = ToInt32(this.b4);
     evt.ColumnMask            |= 1UL << columnid;
 }
Exemple #23
0
 /// <summary>
 /// Sets the long column.
 /// </summary>
 /// <param name="evt">The event.</param>
 /// <param name="columnid">The column id.</param>
 private void SetLongColumn(ProfilerEvent evt, int columnid)
 {
     this.reader.GetBytes(2, 0, this.b8, 0, 8);
     evt.EventObjects[columnid] = ToInt64(this.b8);
     evt.ColumnMask            |= 1UL << columnid;
 }
Exemple #24
0
 public byte[] BinaryDataGet([PexAssumeUnderTest] ProfilerEvent target)
 {
     byte[] result = target.BinaryData;
     return(result);
     // TODO: add assertions to method ProfilerEventTest.BinaryDataGet(ProfilerEvent)
 }
Exemple #25
0
 /// <summary>
 /// Sets the GUID column.
 /// </summary>
 /// <param name="evt">The event.</param>
 /// <param name="columnid">The column id.</param>
 /// <exception cref="System.NotImplementedException">an exception</exception>
 private static void SetGuidColumn(ProfilerEvent evt, int columnid)
 {
     throw new NotImplementedException();
 }
Exemple #26
0
 public byte[] TargetLoginSidGet([PexAssumeUnderTest] ProfilerEvent target)
 {
     byte[] result = target.TargetLoginSid;
     return(result);
     // TODO: add assertions to method ProfilerEventTest.TargetLoginSidGet(ProfilerEvent)
 }