示例#1
0
 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);
 }
示例#2
0
        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);
        }
示例#3
0
 public LogMessage(NuGet.Common.LogLevel level, string message, NuGet.Common.NuGetLogCode code)
 {
 }
示例#4
0
 public static NuGet.Common.LogMessage CreateWarning(NuGet.Common.NuGetLogCode code, string message)
 {
     throw null;
 }
示例#5
0
 public static string GetName(this NuGet.Common.NuGetLogCode code)
 {
     throw null;
 }
示例#6
0
 public static bool TryGetName(this NuGet.Common.NuGetLogCode code, out string codeString)
 {
     throw null;
 }
示例#7
0
 public static NuGet.Common.RestoreLogMessage CreateWarning(NuGet.Common.NuGetLogCode code, string message, string libraryId, params string[] targetGraphs)
 {
     throw null;
 }
示例#8
0
 public static NuGet.Common.RestoreLogMessage CreateError(NuGet.Common.NuGetLogCode code, string message)
 {
     throw null;
 }
示例#9
0
 public RestoreLogMessage(NuGet.Common.LogLevel logLevel, NuGet.Common.NuGetLogCode errorCode, string errorString, string targetGraph, bool logToInnerLogger)
 {
 }
示例#10
0
 public RestoreLogMessage(NuGet.Common.LogLevel logLevel, NuGet.Common.NuGetLogCode errorCode, string errorString)
 {
 }
示例#11
0
 public static NuGet.Common.PackagingLogMessage CreateWarning(string message, NuGet.Common.NuGetLogCode code)
 {
     throw null;
 }