Browse Source

Use `Environment.NewLine` instead of `\r\n`

pull/1406/head
maliming 7 years ago
parent
commit
678b37492d
  1. 5
      framework/test/Volo.Abp.Emailing.Tests/Volo/Abp/Emailing/EmailTemplateStore_Tests.cs

5
framework/test/Volo.Abp.Emailing.Tests/Volo/Abp/Emailing/EmailTemplateStore_Tests.cs

@ -1,4 +1,5 @@
using System.Threading.Tasks; using System;
using System.Threading.Tasks;
using Shouldly; using Shouldly;
using Volo.Abp.Emailing.Templates; using Volo.Abp.Emailing.Templates;
using Xunit; using Xunit;
@ -38,7 +39,7 @@ namespace Volo.Abp.Emailing
{ {
var template = await _emailTemplateProvider.GetAsync("template2", "en"); var template = await _emailTemplateProvider.GetAsync("template2", "en");
template.Content.ShouldContain("<body>\r\n " + "Please confirm your email address by clicking the link below."); template.Content.ShouldContain($"<body>{Environment.NewLine} " + "Please confirm your email address by clicking the link below.");
} }

Loading…
Cancel
Save