示例#1
0
        public FixturePerMethodConvention()
        {
            Classes
            .ClassNameIsBddStyleOrEndsWithTests()
            .ConstructorDoesntHaveArguments();

            ClassExecution
            .CreateInstancePerCase();

            Parameters.Add(
                methodInfo =>
                (methodInfo.GetParameters().Length == 1) &&
                (methodInfo.GetParameters()[0].ParameterType == typeof(SliceFixture))
                                ? new[] { new[] { new SliceFixture() } }
                                : null);

            FixtureExecution.Wrap <DeleteData>();
        }