Esempio n. 1
0
        public void Reinitialize_NewBuilder_ReturnHtmlWithBeginning()
        {
            // arrange
            _bgEmailBuilder = new BlueGrayEmailBuilder();

            // act
            _bgEmailBuilder.Reinitialize();
            var result = _bgEmailBuilder.GetHTML();

            // assert
            Assert.IsTrue(result.Contains("<head>"));
        }
Esempio n. 2
0
        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#@!"));
        }