public void InformationLog_InitializesProperties() { // Arrange var message = "unit_test_message"; // Act var log = SignatureLog.InformationLog(message); // Assert log.Message.Should().Be(message); log.Code.Should().Be(NuGetLogCode.Undefined); log.Level.Should().Be(LogLevel.Information); }
public static IEnumerable <object[]> SignatureLogCombinations() { yield return(new object[] { SignatureLog.DebugLog(string.Empty) }); yield return(new object[] { SignatureLog.InformationLog(string.Empty) }); yield return(new object[] { SignatureLog.DetailedLog(string.Empty) }); yield return(new object[] { SignatureLog.Issue(false, NuGetLogCode.NU1000, string.Empty) }); yield return(new object[] { SignatureLog.Issue(true, NuGetLogCode.NU1000, string.Empty) }); yield return(new object[] { SignatureLog.Issue(true, NuGetLogCode.NU3000, string.Empty) }); yield return(GenerateSignatureLogWithMetadata()); }