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

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

            PAssert.IsTrue(() => spec.CallingMethod.DeclaringType == typeof(ReflectionTests));
            PAssert.IsTrue(() => spec.CallingMethod.Name == "AsyncMethodFindsRightTestClass");
        }