コード例 #1
0
        public void matches_given_test_with_test_method_test_type_and_test_fixture_type_that_inherits_from_spec()
        {
            test.TestType.Returns("TestMethod");
            test.FixtureType.Returns(GetType());

            var result = specification.IsSatisfiedBy(test);

            specify(() => result);
        }
コード例 #2
0
        public void should_return_nspec_test_method_for_tests_that_match_specification()
        {
            decorateTestSpecification.IsSatisfiedBy(test).ReturnsForAnyArgs(true);

            var result = decorator.Decorate(test, null) as NSpecTestMethod;

            specify(() => result != null);
        }