Inheritance: IStatement
Esempio n. 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();
 }
Esempio n. 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();
        }
Esempio n. 3
0
        public void SingleStatement_ShouldPass()
        {
            var statement = new Statement(stringStatement);
            statement.Generate();

            Assert.AreEqual("This is statement", Receiver.Received);
            Receiver.Clear();
        }
Esempio n. 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();
        }