コード例 #1
0
ファイル: SpecSpecRunner.cs プロジェクト: rssvihla/OldIdeas
        protected void ExecuteRunner()
        {
            runner = new SpecRunner(typeloader.Object, finder.Object, reporter.Object, new ParentClassRuleExecutor());

               returncode =  runner.Execute("loc");
        }
コード例 #2
0
ファイル: SpecSpecRunner.cs プロジェクト: rssvihla/OldIdeas
        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) });
        }