Beispiel #1
0
        public void CaptureNoArgumentsForRegularTestMethod()
        {
            var test = _builder.BuildFrom(new MethodWrapper(typeof(RegularFixtureWithOneTest), nameof(RegularFixtureWithOneTest.OneTest)));

            Assert.That(test, Is.TypeOf <TestMethod>());
            Assert.That(test.Arguments, Is.EqualTo(new object[0]));
        }
Beispiel #2
0
        public void RunTests(IMethodInfo method, ResultState resultState, int assertionCount)
        {
            var test   = _builder.BuildFrom(method);
            var result = TestBuilder.RunTest(test, _testObject);

            Assert.That(result.ResultState, Is.EqualTo(resultState), "Wrong result state");
            Assert.That(result.AssertCount, Is.EqualTo(assertionCount), "Wrong assertion count");
        }