コード例 #1
0
        public void ShouldReturnAddGacReferenceProcessorWhenFileReferenceNotFound()
        {
            var fs = new FakeFileSystem();
            fs.FileExists(false);
            _factory = new AddReferenceProcessorFactory(_solution, _processors, fs);
            var request = new AddReferenceRequest
            {
                Reference = "Nancy.dll"
            };

            var processor = _factory.CreateProcessorFor(request);
            processor.ShouldBeType<AddGacReferenceProcessor>();
        }
コード例 #2
0
        public void SetUp()
        {
            _solution = new FakeSolution();
            var project = new FakeProject();
            _solution.Projects.Add(project);
            _processors = new List<IReferenceProcessor>
                              {
                                  new AddProjectReferenceProcessor(_solution),
                                  new AddFileReferenceProcessor(),
                                  new AddGacReferenceProcessor()
                              };

            _factory = new AddReferenceProcessorFactory(_solution, _processors, new FileSystem());
        }