public void NoteTestResult(ResultLevel messageKind, string targetPath) { switch (messageKind) { case ResultLevel.Pass: { PassTargets.Add(targetPath); break; } case ResultLevel.Error: { FailTargets.Add(targetPath); break; } case ResultLevel.NotApplicable: { NotApplicableTargets.Add(targetPath); break; } case ResultLevel.Note: { throw new NotImplementedException(); } default: { throw new InvalidOperationException(); } } }
public void NoteTestResult(FailureLevel messageKind, string targetPath) { switch (messageKind) { case FailureLevel.Error: { FailTargets.Add(targetPath); break; } case FailureLevel.Warning: { FailTargets.Add(targetPath); break; } case FailureLevel.Note: { throw new NotImplementedException(); } default: { break; } } }
public void NoteTestResult(ResultKind kind, string targetPath) { switch (kind) { case ResultKind.Pass: { PassTargets.Add(targetPath); break; } case ResultKind.Fail: { FailTargets.Add(targetPath); break; } case ResultKind.NotApplicable: { NotApplicableTargets.Add(targetPath); break; } default: { throw new InvalidOperationException(); } } }
public void NoteTestResult(ResultLevel level, string targetPath) { switch (level) { case ResultLevel.Pass: { PassTargets.Add(targetPath); break; } case ResultLevel.Error: { FailTargets.Add(targetPath); break; } case ResultLevel.NotApplicable: { NotApplicableTargets.Add(targetPath); break; } default: { throw new InvalidOperationException(); } } }
public void Log(MessageKind messageKind, BinaryAnalyzerContext context, string message) { switch (messageKind) { case MessageKind.Pass: { PassTargets.Add(context.PE.FileName); break; } case MessageKind.Fail: { FailTargets.Add(context.PE.FileName); break; } case MessageKind.NotApplicable: { NotApplicableTargets.Add(context.PE.FileName); break; } case MessageKind.Note: case MessageKind.Pending: case MessageKind.InternalError: case MessageKind.ConfigurationError: { throw new NotImplementedException(); } } }
public void Log(ResultKind messageKind, IAnalysisContext context, string message) { switch (messageKind) { case ResultKind.Pass: { PassTargets.Add(context.TargetUri.LocalPath); break; } case ResultKind.Error: { FailTargets.Add(context.TargetUri.LocalPath); break; } case ResultKind.NotApplicable: { NotApplicableTargets.Add(context.TargetUri.LocalPath); break; } case ResultKind.Note: case ResultKind.InternalError: case ResultKind.ConfigurationError: { throw new NotImplementedException(); } default: { throw new InvalidOperationException(); } } }