Browse Source
Fix culture-sensitive DateTime assertion in test
pull/25267/head
maliming
4 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
2 additions and
1 deletions
-
framework/test/Volo.Abp.Core.Tests/Microsoft/Extensions/Logging/AbpLoggerExtensions_Tests.cs
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Globalization; |
|
|
|
using Shouldly; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
@ -103,7 +104,7 @@ public class AbpLoggerExtensions_Tests |
|
|
|
|
|
|
|
logger.LogException(exception); |
|
|
|
|
|
|
|
logger.LastLoggedMessage.ShouldContain($"Timestamp = {now}"); |
|
|
|
logger.LastLoggedMessage.ShouldContain($"Timestamp = {now.ToString(CultureInfo.CurrentCulture)}"); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
|