Exemple #1
0
        protected void ExecuteRunner()
        {
            runner = new SpecRunner(typeloader.Object, finder.Object, reporter.Object, new ParentClassRuleExecutor());

               returncode =  runner.Execute("loc");
        }
Exemple #2
0
        public override void SetUp()
        {
            base.SetUp();
            typeloader.Setup(x => x.Get(It.IsAny<string>())).Returns(new[] { typeof(SupportClasses.BankAccountSpec) });
            finder.Setup(find => find.GetImpl(It.IsAny<Type[]>())).Returns(new[] { typeof(SupportClasses.BankAccountSpec) });
            reporter.Setup(report => report.FromSpecContainers(It.IsAny<SpecificationStatus[]>()));

            runner = new SpecRunner(typeloader.Object, finder.Object, reporter.Object, new ParentClassRuleExecutor());
            runner.Execute(new[] { typeof(BankAccountSpec) });
        }