We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 312fbbe commit a39c1daCopy full SHA for a39c1da
test/SocketLabs.Test/Validation/SendValidatorTest.cs
@@ -338,6 +338,27 @@ public void HasMessageBody_ReturnsFalse_WhenPlainTextBodyAndHtmlBodyAndApiTempla
338
//Assert
339
Assert.IsFalse(actual);
340
}
341
+
342
+ [TestMethod]
343
+ public void HasMessageBody_ReturnsFalse_WhenPlainTextBodyAndHtmlBodyAndApiTemplateAndAmpBodyIsEmpty()
344
+ {
345
+ //Arrange
346
+ var message = new BasicMessage
347
348
+ HtmlBody = string.Empty,
349
+ PlainTextBody = string.Empty,
350
+ ApiTemplate = null,
351
+ AmpBody = string.Empty
352
+ };
353
+ var validator = new SendValidator();
354
355
+ //Act
356
+ var actual = validator.HasMessageBody(message);
357
358
+ //Assert
359
+ Assert.IsFalse(actual);
360
+ }
361
362
#endregion
363
364
0 commit comments