public void GenericLogAsyncPassesEventCodeThroughAndConvertsLogLevelCorrectly( NuGet.Common.LogLevel logLevel, LogLevel expectedLogLevel, NuGet.Common.NuGetLogCode expectedCode) { ValidateLevelAndEventId <string>( (l, t) => l.LogAsync(CreateLogMessage(logLevel, t, expectedCode)).Wait(), expectedLogLevel, (int)expectedCode); }
private static NuGet.Common.ILogMessage CreateLogMessage( NuGet.Common.LogLevel logLevel, string message, NuGet.Common.NuGetLogCode code) { var messageMock = new Mock <NuGet.Common.ILogMessage>(); messageMock .SetupProperty(m => m.Level, logLevel) .SetupProperty(m => m.Message, message) .SetupProperty(m => m.Code, code); return(messageMock.Object); }
public LogMessage(NuGet.Common.LogLevel level, string message, NuGet.Common.NuGetLogCode code) { }
public static NuGet.Common.LogMessage CreateWarning(NuGet.Common.NuGetLogCode code, string message) { throw null; }
public static string GetName(this NuGet.Common.NuGetLogCode code) { throw null; }
public static bool TryGetName(this NuGet.Common.NuGetLogCode code, out string codeString) { throw null; }
public static NuGet.Common.RestoreLogMessage CreateWarning(NuGet.Common.NuGetLogCode code, string message, string libraryId, params string[] targetGraphs) { throw null; }
public static NuGet.Common.RestoreLogMessage CreateError(NuGet.Common.NuGetLogCode code, string message) { throw null; }
public RestoreLogMessage(NuGet.Common.LogLevel logLevel, NuGet.Common.NuGetLogCode errorCode, string errorString, string targetGraph, bool logToInnerLogger) { }
public RestoreLogMessage(NuGet.Common.LogLevel logLevel, NuGet.Common.NuGetLogCode errorCode, string errorString) { }
public static NuGet.Common.PackagingLogMessage CreateWarning(string message, NuGet.Common.NuGetLogCode code) { throw null; }