コード例 #1
0
        public void IsFieldModified_OptionObject_IsTrue()
        {
            // Arrange
            FieldObject fieldObject01 = new FieldObject("123", "");
            FieldObject fieldObject02 = new FieldObject("124", "");
            FieldObject fieldObject03 = new FieldObject("125", "");
            RowObject   rowObject01   = new RowObject("1||1", new List <FieldObject>()
            {
                fieldObject01, fieldObject02, fieldObject03
            });
            FormObject   formObject   = new FormObject("1", rowObject01);
            OptionObject optionObject = new OptionObject()
            {
                Forms = new List <FormObject>()
                {
                    formObject
                }
            };

            // Act
            optionObject.SetFieldValue("123", "MODIFIED");

            // Assert
            Assert.IsTrue(optionObject.IsFieldModified("123"));
        }