public void TraceWarningShouldWriteMessageToTrace()
        {
            var message        = "testmessage";
            var loggingService = new TraceLoggingService();

            loggingService.LogWarning(message);
            Assert.AreEqual(message, traceListener.WrittenValue);
        }
Ejemplo n.º 2
0
 public RemoteSyncDirectory(
     IRemoteDirectory remoteDirectory,
     bool compressBlobs = false)
 {
     RemoteDirectory                   = remoteDirectory;
     _remoteIndexOutputFactory         = GetAzureIndexOutputFactory();
     _remoteDirectoryIndexInputFactory = GetAzureIndexInputFactory();
     LoggingService = new TraceLoggingService();
     CompressBlobs  = compressBlobs;
 }
Ejemplo n.º 3
0
 public RemoteSyncDirectory(IRemoteDirectory remoteDirectory,
                            Directory cacheDirectory,
                            bool compressBlobs = false)
 {
     CacheDirectory                    = cacheDirectory;
     LoggingService                    = new TraceLoggingService();
     RemoteDirectory                   = remoteDirectory;
     _lockFactory                      = GetLockFactory();
     _remoteIndexOutputFactory         = GetAzureIndexOutputFactory();
     _remoteDirectoryIndexInputFactory = GetAzureIndexInputFactory();
     GuardCacheDirectory(CacheDirectory);
     CompressBlobs = compressBlobs;
 }
 public TraceLoggingServiceTests()
 {
     _traceLogging      = new TraceLoggingService();
     _fakeTraceListener = new FakeTraceListener();
 }