public void NormalMethodFindsRightTestClass() { var spec = new Spec(""); spec.ExecuteAsync().Wait(); PAssert.IsTrue(() => spec.CallingMethod.DeclaringType == typeof(ReflectionTests)); PAssert.IsTrue(() => spec.CallingMethod.Name == "NormalMethodFindsRightTestClass"); }
public async Task AsyncMethodFindsRightTestClass() { var spec = new Spec(""); await spec.ExecuteAsync(); PAssert.IsTrue(() => spec.CallingMethod.DeclaringType == typeof(ReflectionTests)); PAssert.IsTrue(() => spec.CallingMethod.Name == "AsyncMethodFindsRightTestClass"); }