Exemplo n.º 1
0
        public IEnumerable <TestSuite> BuildFrom(ITypeInfo typeInfo)
        {
            var methods = typeInfo.GetMethodsWithAttribute <BehaviourAttribute>(inherit: false);

            foreach (var method in methods)
            {
                var builder = new NUnitTestFixtureBuilder();

                var fixture = builder.BuildFrom(typeInfo, new MethodFilter(method));

                fixture.FullName = $"{typeInfo.FullName}.{method.Name}";

                yield return(fixture);
            }
        }
 public IMethodInfo[] GetMethodsWithAttribute <T>(bool inherit) where T : class
 {
     return(_baseInfo.GetMethodsWithAttribute <T>(inherit));
 }