Пример #1
0
        public void RunScript_GetErrorCode0_OptionObject2015_FormCountEquals0()
        {
            // Arrange
            OptionObject2015 optionObject = new OptionObject2015();
            var command = new GetErrorCode0Command(optionObject);

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

            // Assert
            Assert.AreEqual(0, returnOptionObject.Forms.Count);
        }
Пример #2
0
        public void RunScript_GetErrorCode0_OptionObject2_ReturnsErrorCode0()
        {
            // Arrange
            OptionObject2 optionObject = new OptionObject2();
            var           command      = new GetErrorCode0Command(optionObject.ToOptionObject2015());

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

            // Assert
            Assert.AreEqual(0, returnOptionObject.ErrorCode);
        }
Пример #3
0
        public void RunScript_GetErrorCode0_OptionObject2_FormCountEquals0()
        {
            // Arrange
            OptionObject2         optionObject          = new OptionObject2();
            OptionObjectDecorator optionObjectDecorator = new OptionObjectDecorator(optionObject);
            var command = new GetErrorCode0Command(optionObjectDecorator);

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

            // Assert
            Assert.AreEqual(0, returnOptionObject.Forms.Count);
        }
Пример #4
0
        public void RunScript_GetErrorCode0_OptionObject2015_ReturnsErrorCode0()
        {
            // Arrange
            OptionObject2015      optionObject          = new OptionObject2015();
            OptionObjectDecorator optionObjectDecorator = new OptionObjectDecorator(optionObject);
            var command = new GetErrorCode0Command(optionObjectDecorator);

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

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