Exemplo n.º 1
0
        public void NoteTestResult(ResultKind messageKind, string targetPath)
        {
            switch (messageKind)
            {
            case ResultKind.Pass:
            {
                PassTargets.Add(targetPath);
                break;
            }

            case ResultKind.ConfigurationError:
            {
                ConfigurationErrorTargets.Add(targetPath);
                break;
            }

            case ResultKind.Error:
            {
                FailTargets.Add(targetPath);
                break;
            }

            case ResultKind.NotApplicable:
            {
                NotApplicableTargets.Add(targetPath);
                break;
            }

            case ResultKind.Note:
            case ResultKind.InternalError:
            {
                throw new NotImplementedException();
            }

            default:
            {
                throw new InvalidOperationException();
            }
            }
        }
Exemplo n.º 2
0
 public void LogConfigurationNotification(Notification notification)
 {
     ConfigurationErrorTargets.Add(notification.PhysicalLocation.Uri.LocalPath);
 }
Exemplo n.º 3
0
 public void LogConfigurationNotification(Sarif.Notification notification)
 {
     ConfigurationErrorTargets.Add(notification.Locations[0].PhysicalLocation.ArtifactLocation.Uri.LocalPath);
 }