public void Logger_GetLogger_ReturnsLogger() { CreateProject(); ILogger expectedLogger = new NullLogger(); project.Logger = expectedLogger; ILogger actualLogger = project.Logger; Assert.AreEqual(expectedLogger, actualLogger); }
ILogger AddLoggerToAction() { var logger = new NullLogger(); action.Logger = logger; return logger; }
public void Logger_SetLogger_PackageManagerFileSystemUsesLogger() { CreateProject(); ILogger expectedLogger = new NullLogger(); project.Logger = expectedLogger; ILogger actualLogger = fakePackageManager.FileSystem.Logger; Assert.AreEqual(expectedLogger, actualLogger); }