コード例 #1
0
            public Task InitializeAsync(ITestInput testInput, IMessageBus messageBus)
            {
                _addServices(this, testInput);
                var logsFolder = Path.Combine(DeployFilesFixture.TestFilesRoot, "Logs");

                Directory.CreateDirectory(logsFolder);
                _log.SetLog(new Logger(testInput.FileSytemSafeName, logsFolder, this));

                return(Task.CompletedTask);
            }
コード例 #2
0
ファイル: ServiceManagerFixture.cs プロジェクト: heruix/RTVS
            public Task <Task <RunSummary> > InitializeAsync(ITestInput testInput, IMessageBus messageBus)
            {
                try {
                    var logsFolder = Path.Combine(DeployFilesFixture.TestFilesRoot, "Logs");
                    Directory.CreateDirectory(logsFolder);
                    _log.SetLog(new Logger(testInput.FileSytemSafeName, logsFolder, new MaxLoggingPermissions()));
                    _addServices(this, testInput);
                } catch (Exception) {
                    return(Task.FromResult(Task.FromResult(new RunSummary {
                        Failed = 1
                    })));
                }

                return(MethodFixtureBase.DefaultInitializeTask);
            }
コード例 #3
0
 public CoreServicesFixture()
 {
     _services = TestCoreServices.CreateReal();
     _log      = new LogProxy();
     _log.SetLog(_services.Log);
 }