public void Reinitialize_NewBuilder_ReturnHtmlWithBeginning() { // arrange _bgEmailBuilder = new BlueGrayEmailBuilder(); // act _bgEmailBuilder.Reinitialize(); var result = _bgEmailBuilder.GetHTML(); // assert Assert.IsTrue(result.Contains("<head>")); }
public void AddText_NewBuilder_ReturnHtmlWithText() { // arrange _bgEmailBuilder = new BlueGrayEmailBuilder(); // act _bgEmailBuilder.AddText("TestText#@!"); var result = _bgEmailBuilder.GetHTML(); // assert Assert.IsTrue(result.Contains("TestText#@!")); }
public void AddSpacer_NewBuilder_ReturnHtmlWithSpacer() { // arrange _bgEmailBuilder = new BlueGrayEmailBuilder(); // act _bgEmailBuilder.AddSpacer(); var result = _bgEmailBuilder.GetHTML(); // assert Assert.IsTrue(result.Contains("<!-- SPACER -->")); }
public void AddCenteredImage_NewBuilder_ReturnHtmlWithImage() { // arrange _bgEmailBuilder = new BlueGrayEmailBuilder(); // act _bgEmailBuilder.AddCenteredImage("TestUrl#@!"); var result = _bgEmailBuilder.GetHTML(); // assert Assert.IsTrue(result.Contains("TestUrl#@!")); }
public void AddButton_NewBuilder_ReturnHtmlWithButton() { // arrange _bgEmailBuilder = new BlueGrayEmailBuilder(); // act _bgEmailBuilder.AddButton("TestBtn#@!", null); var result = _bgEmailBuilder.GetHTML(); // assert Assert.IsTrue(result.Contains("TestBtn#@!")); }
public void AddHeader_WithHeader_ReturnHtmlWithBothHeaders() { // arrange _bgEmailBuilder = new BlueGrayEmailBuilder(); _bgEmailBuilder.AddHeader("TestHeader#@!1"); // act _bgEmailBuilder.AddHeader("TestHeader#@!2"); var result = _bgEmailBuilder.GetHTML(); // assert Assert.IsTrue(result.Contains("TestHeader#@!1") && result.Contains("TestHeader#@!2")); }
public void Reinitialize_BuilderWithHeader_ReturnHtmlWithoutHeader() { // arrange _bgEmailBuilder = new BlueGrayEmailBuilder(); _bgEmailBuilder.AddHeader("TestHeader#@!"); // act _bgEmailBuilder.Reinitialize(); var result = _bgEmailBuilder.GetHTML(); // assert Assert.IsTrue(!result.Contains("TestHeader#@!")); }