示例#1
0
            public void CallsAllDependencies_GivenMultipleProcessors()
            {
                var creator    = new QUnitDefinitionCreator();
                var processor1 = creator.Mock <IQUnitReferencedFileProcessor>();
                var processor2 = creator.Mock <IQUnitReferencedFileProcessor>();

                creator.InjectArray <IQUnitReferencedFileProcessor>(new[] { processor1.Object, processor2.Object });

                creator.ClassUnderTest.Process(new ReferencedFile(), "", new ChutzpahTestSettingsFile().InheritFromDefault());

                processor1.Verify(x => x.Process(It.IsAny <IFrameworkDefinition>(), It.IsAny <ReferencedFile>(), It.IsAny <string>(), It.IsAny <ChutzpahTestSettingsFile>()));
                processor2.Verify(x => x.Process(It.IsAny <IFrameworkDefinition>(), It.IsAny <ReferencedFile>(), It.IsAny <string>(), It.IsAny <ChutzpahTestSettingsFile>()));
            }
示例#2
0
            public void CallsDependency_GivenOneProcessor()
            {
                var creator   = new QUnitDefinitionCreator();
                var processor = creator.Mock <IQUnitReferencedFileProcessor>();

                creator.ClassUnderTest.Process(new ReferencedFile(), "", new ChutzpahTestSettingsFile().InheritFromDefault());

                processor.Verify(x => x.Process(It.IsAny <IFrameworkDefinition>(), It.IsAny <ReferencedFile>(), It.IsAny <string>(), It.IsAny <ChutzpahTestSettingsFile>()));
            }