Ejemplo n.º 1
0
        public void ConflictsManager_Ctor()
        {
            var logger = Mock.Of <ILogger>();
            var projectBinderFactory = new ProjectBinderFactory(serviceProvider, logger);

            Exceptions.Expect <ArgumentNullException>(() => new ConflictsManager(null, logger, projectBinderFactory, fileSystem));
            Exceptions.Expect <ArgumentNullException>(() => new ConflictsManager(serviceProvider, null, projectBinderFactory, fileSystem));
            Exceptions.Expect <ArgumentNullException>(() => new ConflictsManager(serviceProvider, logger, null, fileSystem));
            Exceptions.Expect <ArgumentNullException>(() => new ConflictsManager(serviceProvider, logger, projectBinderFactory, null));

            testSubject.Should().NotBeNull("Avoid code analysis warning when testSubject is unused");
        }
Ejemplo n.º 2
0
 public void TestInitialize()
 {
     testSubject = new ProjectBinderFactory(Mock.Of <IServiceProvider>(), Mock.Of <ILogger>(), Mock.Of <IFileSystem>());
 }