-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
153 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"cake.tool": { | ||
"version": "1.1.0", | ||
"commands": [ | ||
"dotnet-cake" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -418,7 +418,7 @@ public void InboundEmail() | |
inboundEmail.SpamScore.ShouldBeNull(); | ||
inboundEmail.Spf.ShouldBe("softfail"); | ||
inboundEmail.Subject.ShouldBe("Test #1"); | ||
inboundEmail.Text.ShouldBe("Test #1\r\n"); | ||
inboundEmail.Text.Replace("\r\n", "\n").ShouldBe("Test #1\n"); | ||
inboundEmail.To.ShouldNotBeNull(); | ||
inboundEmail.To.Length.ShouldBe(1); | ||
inboundEmail.To[0].Email.ShouldBe("[email protected]"); | ||
|
@@ -455,7 +455,7 @@ public async Task InboundEmailAsync() | |
inboundEmail.SpamScore.ShouldBeNull(); | ||
inboundEmail.Spf.ShouldBe("softfail"); | ||
inboundEmail.Subject.ShouldBe("Test #1"); | ||
inboundEmail.Text.ShouldBe("Test #1\r\n"); | ||
inboundEmail.Text.Replace("\r\n", "\n").ShouldBe("Test #1\n"); | ||
inboundEmail.To.ShouldNotBeNull(); | ||
inboundEmail.To.Length.ShouldBe(1); | ||
inboundEmail.To[0].Email.ShouldBe("[email protected]"); | ||
|
@@ -482,8 +482,8 @@ public void RawPayloadWithAttachments() | |
|
||
inboundEmail.Dkim.ShouldBe("{@sendgrid.com : pass}"); | ||
|
||
var rawEmailTestData = File.ReadAllText("InboudEmailTestData/raw_email.txt"); | ||
inboundEmail.RawEmail.Trim().ShouldBe(rawEmailTestData); | ||
var rawEmailTestData = File.ReadAllText("InboudEmailTestData/raw_email.txt").Replace("\r\n", "\n"); | ||
inboundEmail.RawEmail.Trim().Replace("\r\n", "\n").ShouldBe(rawEmailTestData); | ||
|
||
inboundEmail.To[0].Email.ShouldBe("[email protected]"); | ||
inboundEmail.To[0].Name.ShouldBe(string.Empty); | ||
|
@@ -535,8 +535,8 @@ public async Task RawPayloadWithAttachmentsAsync() | |
|
||
inboundEmail.Dkim.ShouldBe("{@sendgrid.com : pass}"); | ||
|
||
var rawEmailTestData = File.ReadAllText("InboudEmailTestData/raw_email.txt"); | ||
inboundEmail.RawEmail.Trim().ShouldBe(rawEmailTestData); | ||
var rawEmailTestData = File.ReadAllText("InboudEmailTestData/raw_email.txt").Replace("\r\n", "\n"); | ||
inboundEmail.RawEmail.Trim().Replace("\r\n", "\n").ShouldBe(rawEmailTestData); | ||
|
||
inboundEmail.To[0].Email.ShouldBe("[email protected]"); | ||
inboundEmail.To[0].Name.ShouldBe(string.Empty); | ||
|
@@ -589,7 +589,7 @@ public void InboundEmail_with_unusual_encoding() | |
new KeyValuePair<string, Encoding>("html", Encoding.ASCII), | ||
new KeyValuePair<string, Encoding>("text", Encoding.UTF8) // The original encoding is iso-8859-10 but we fallback on UTF-8 | ||
}).Count().ShouldBe(0); | ||
inboundEmail.Text.ShouldBe("Hello SendGrid!\r\n"); | ||
inboundEmail.Text.Replace("\r\n", "\n").ShouldBe("Hello SendGrid!\n"); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.