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(); }
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>(); }