Exemplo n.º 1
0
        public void Handle(AtataContextCleanUpEvent eventData, AtataContext context)
        {
            string directoryPath = _directoryPathBuilder.Invoke(context);

            directoryPath = context.FillTemplateString(directoryPath);

            DirectoryInfo directory = new DirectoryInfo(directoryPath);

            if (directory.Exists)
            {
                var files = directory.EnumerateFiles("*", SearchOption.AllDirectories);

                foreach (var file in files)
                {
                    NUnitAdapter.AddTestAttachment(file.FullName);
                }
            }
        }
 public void ReportFailure(string message, string stackTrace)
 {
     NUnitAdapter.RecordAssertionIntoTestResult(NUnitAdapter.AssertionStatus.Failed, message, stackTrace);
     NUnitAdapter.RecordTestCompletionIntoTestResult();
 }
 public void Assert(Action action)
 {
     NUnitAdapter.AssertMultiple(action);
 }