Skip to content

Commit

Permalink
remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmh committed Sep 20, 2024
1 parent 23facaa commit 6a42ba9
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Src/UnitTests/MailerUnitTests/Mail/SmtpMailerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,5 @@ public void SmtpMailerUseAuthentication(string username, string password, bool s
var mailer = new SmtpMailer(renderer, "dummy", 1, username, password);
Assert.Equal(mailer.UseSMTPAuthentication(), shouldUseAuthentication);
}

[Fact]
public async Task SmtpMailerGlobalFromUsedByDefault()
{
var renderer = RazorRendererFactory.MakeInstance(new ConfigurationBuilder().Build());
var mailer = new SmtpMailer(renderer, "dummy", 1, "dummy", "dummy", globalFrom: new MailRecipient("global@from.com"));

string message = await mailer.RenderAsync(
new GenericHtmlMailable()
.Subject("test")
.To("to@test.com")
.Html("<html></html>")
);

Assert.Equal("<html></html>", message);
}
}
}

0 comments on commit 6a42ba9

Please sign in to comment.