Пример #1
0
        public void Request_function_names_invalid_functionids()
        {
            //the second request function names should return unknown/unknown
            FunctionIDCollection functionIds = new FunctionIDCollection();

            {
                functionIds.Add(UIntPtr.Zero);
                var results = Request_function_names_baseline(functionIds);
                StringAssert.AreEqualIgnoringCase(results[0].TypeName, UnknownClass);
                StringAssert.AreEqualIgnoringCase(results[0].MethodName, UnknownMethod);
            }

            functionIds.Clear();
            {
                if (IntPtr.Size == sizeof(ulong))
                {
                    functionIds.Add(new UIntPtr(unchecked ((ulong)-1)));
                }
                else
                {
                    functionIds.Add(new UIntPtr(unchecked ((uint)-1)));
                }

                var results = Request_function_names_baseline(functionIds);
                StringAssert.AreEqualIgnoringCase(results[0].TypeName, UnknownClass);
                StringAssert.AreEqualIgnoringCase(results[0].MethodName, UnknownMethod);
            }
        }
Пример #2
0
        public void Request_profile_then_request_fnames_n_times()
        {
            FunctionIDCollection functionIds = new FunctionIDCollection();

            Request_profile_baseline(functionIds, out int hr);
            Request_function_names_baseline(functionIds);

            functionIds.Clear();
            Request_profile_baseline(functionIds, out hr);
            Request_function_names_baseline(functionIds);
        }