Ejemplo n.º 1
0
        protected void GivenDllContains(params Type[] types)
        {
            reflector = MockRepository.GenerateMock <IReflector>();

            RhinoMocksExtensions.Stub(reflector, r => r.GetTypesFrom("")).IgnoreArguments().Return(types);

            someDLL = "an nspec project dll";

            finder = new SpecFinder(someDLL, reflector);
        }
Ejemplo n.º 2
0
        public void setup()
        {
            reflector = MockRepository.GenerateMock <IReflector>();

            RhinoMocksExtensions.Stub(reflector, r => r.GetTypesFrom("")).IgnoreArguments().Return(new[] { typeof(SpecClass) });

            var contextBuilder = new ContextBuilder(new SpecFinder("", reflector), new DefaultConventions());

            classContext = contextBuilder.Contexts().First();

            classContext.Run();
        }