Exemplo n.º 1
0
        public void it_should_not_convert_when_nspec_dll_is_not_in_output_dir()
        {
            someProjectInfo.Hierarchy = someHierarchy;

            projectWrapperFactory.Create(someHierarchy).Returns(someDummyProject);

            converter.ToTestDllPath(someProjectInfo).Should().BeNull();
        }
Exemplo n.º 2
0
        public virtual void before_each()
        {
            autoSubstitute = new AutoSubstitute();

            projectWrapperFactory = autoSubstitute.Resolve <IProjectWrapperFactory>();

            fileService = autoSubstitute.Resolve <IFileService>();

            IProjectWrapper notAProject = null;

            projectWrapperFactory.Create(Arg.Any <IVsHierarchy>()).Returns(notAProject);

            fileService.Exists(Arg.Any <string>()).Returns(false);

            converter = autoSubstitute.Resolve <ProjectConverter>();

            someProjectInfo  = new ProjectInfo();
            someHierarchy    = autoSubstitute.Resolve <IVsHierarchy>();
            someDummyProject = autoSubstitute.Resolve <IProjectWrapper>();
        }