Exemple #1
0
        public void ItWasMeCalledTraceWrite()
        {
            var whoCalledAMethod = new WhoCalledAMethod("BeeHive.Tests.WhoCalledTraceTests",
                                                        "ItWasMeCalledTraceWrite");

            var method = whoCalledAMethod.GetTheMethod();

            Assert.Equal(method.DeclaringType.ToString(), "System.RuntimeMethodHandle");
            Assert.Equal(method.Name, "InvokeMethod");
        }