Exemplo n.º 1
0
        public void RunScript_GetErrorCode1_OptionObject2015_FormCountEquals0()
        {
            // Arrange
            OptionObject2015 optionObject = new OptionObject2015();
            var command = new GetErrorCode1Command(optionObject);

            // Act
            OptionObject2015 returnOptionObject = command.Execute();

            // Assert
            Assert.AreEqual(0, returnOptionObject.Forms.Count);
        }
Exemplo n.º 2
0
        public void RunScript_GetErrorCode1_OptionObject2015_ReturnsErrorCode0()
        {
            // Arrange
            OptionObject2015 optionObject = new OptionObject2015();
            var command = new GetErrorCode1Command(optionObject);

            // Act
            OptionObject2015 returnOptionObject = command.Execute();

            // Assert
            Assert.AreEqual(1, returnOptionObject.ErrorCode);
        }
        public void RunScript_GetErrorCode1_OptionObject2_FormCountEquals0()
        {
            // Arrange
            OptionObject2         optionObject          = new OptionObject2();
            OptionObjectDecorator optionObjectDecorator = new OptionObjectDecorator(optionObject);
            var command = new GetErrorCode1Command(optionObjectDecorator);

            // Act
            OptionObject2 returnOptionObject = (OptionObject2)command.Execute();

            // Assert
            Assert.AreEqual(0, returnOptionObject.Forms.Count);
        }
        public void RunScript_GetErrorCode1_OptionObject_ReturnsErrorCode0()
        {
            // Arrange
            OptionObject          optionObject          = new OptionObject();
            OptionObjectDecorator optionObjectDecorator = new OptionObjectDecorator(optionObject);
            var command = new GetErrorCode1Command(optionObjectDecorator);

            // Act
            OptionObject returnOptionObject = (OptionObject)command.Execute();

            // Assert
            Assert.AreEqual(1, returnOptionObject.ErrorCode);
        }