Наследование: IStatement
Пример #1
0
 public void TripleStatement_ShouldPass()
 {
     var triplestatement = new Statement(htmlStatement + paranoicStatement + consoleStatement);
     triplestatement.Generate();
     Assert.AreEqual("<html>This is statement</html>", Receiver.Received);
     Receiver.Clear();
 }
Пример #2
0
        public void TwoStatements_ShouldPass()
        {
            var statement = new Statement(stringStatement + htmlStatement);
            statement.Generate();

            Assert.AreEqual("This is statement" + "<html>This is statement</html>", Receiver.Received);
            Receiver.Clear();
        }
Пример #3
0
        public void SingleStatement_ShouldPass()
        {
            var statement = new Statement(stringStatement);
            statement.Generate();

            Assert.AreEqual("This is statement", Receiver.Received);
            Receiver.Clear();
        }
Пример #4
0
        public void AllStatementsAtOnce_ShouldPass()
        {
            var allstatements = new Statement(htmlStatement + jsonStatement + paranoicStatement + stringStatement + consoleStatement);
            allstatements.Generate();

            Assert.AreEqual("<html>This is statement</html>" + new MemoryStream() + "This is statement", Receiver.Received);
            Receiver.Clear();
        }