Exemplo n.º 1
0
        public void TestMethod_PrintMessage_Check()
        {
            // Arrange
            var command = new PrintMessageCommand();
            command.Params = "-print";

            // Act
            var result = command.IsMatch();

            // Assert
            Assert.AreEqual(true, result);
        }
Exemplo n.º 2
0
        public void TestMethod_PrintMessage()
        {
            // Arrange
            var command = new PrintMessageCommand();
            command.Params = "-print hhghgh v fgg";

            // Act
            var result = command.DoAction();

            // Assert
            Assert.AreEqual("hhghgh v fgg", result);
        }