public void AddFormObject_ToOptionObject_MIFirstForm()
        {
            OptionObject optionObject = new OptionObject();

            optionObject = (OptionObject)OptionObjectHelpers.AddFormObject(optionObject, "1", true);
            Assert.IsTrue(optionObject.IsFormPresent("1"));
        }
        public void AddFormObject_ToOptionObject_NullFormObject()
        {
            OptionObject optionObject = new OptionObject();

            optionObject = (OptionObject)OptionObjectHelpers.AddFormObject(optionObject, null);
            Assert.IsTrue(optionObject.IsFormPresent("1"));
        }
Ejemplo n.º 3
0
        public void IsFormPresent_OptionObject_Null()
        {
            string       formNumber   = "1";
            OptionObject optionObject = null;

            Assert.IsFalse(optionObject.IsFormPresent(formNumber));
        }
        public void AddFormObject_ToOptionObject_ByFormId()
        {
            OptionObject optionObject = new OptionObject();

            optionObject = (OptionObject)OptionObjectHelpers.AddFormObject(optionObject, "1", false);
            Assert.IsTrue(optionObject.IsFormPresent("1"));
        }
        public void AddFormObject_ToOptionObject_MINotFirstForm()
        {
            OptionObject optionObject = new OptionObject();

            optionObject = (OptionObject)ScriptLinkHelpers.AddFormObject(optionObject, "1", false);
            optionObject = (OptionObject)ScriptLinkHelpers.AddFormObject(optionObject, "2", true);
            Assert.IsTrue(optionObject.IsFormPresent("2"));
        }
Ejemplo n.º 6
0
        public void IsFormPresent_OptionObject_IsNotPresent()
        {
            string       formNumber   = "1";
            FormObject   formObject   = new FormObject(formNumber);
            OptionObject optionObject = new OptionObject();

            optionObject.AddFormObject(formObject);
            Assert.IsFalse(optionObject.IsFormPresent("2"));
        }
Ejemplo n.º 7
0
        public void IsFormPresent_OptionObject_FirstForm_IsPresent()
        {
            string       formNumber   = "1";
            FormObject   formObject   = new FormObject(formNumber);
            OptionObject optionObject = new OptionObject();

            optionObject.AddFormObject(formObject);
            Assert.IsTrue(optionObject.IsFormPresent(formNumber));
        }
Ejemplo n.º 8
0
        public void IsFormPresent_OptionObject_SecondForm_IsPresent()
        {
            string       formNumber   = "2";
            FormObject   formObject1  = new FormObject("1");
            FormObject   formObject2  = new FormObject(formNumber);
            OptionObject optionObject = new OptionObject();

            optionObject.AddFormObject(formObject1);
            optionObject.AddFormObject(formObject2);
            Assert.IsTrue(optionObject.IsFormPresent(formNumber));
        }
        public void AddFormObject_ToOptionObject_Success()
        {
            FormObject formObject = new FormObject()
            {
                FormId            = "1",
                MultipleIteration = false
            };
            OptionObject optionObject = new OptionObject();

            optionObject = (OptionObject)OptionObjectHelpers.AddFormObject(optionObject, formObject);
            Assert.IsTrue(optionObject.IsFormPresent("1"));
        }
        public void AddFormObject_ToOptionObject_NullOptionObject()
        {
            FormObject formObject = new FormObject()
            {
                FormId            = "1",
                MultipleIteration = false
            };
            OptionObject optionObject = null;

            optionObject = (OptionObject)ScriptLinkHelpers.AddFormObject(optionObject, formObject);
            Assert.IsTrue(optionObject.IsFormPresent("1"));
        }
        public void AddFormObject_ToOptionObject_Duplicate()
        {
            FormObject formObject1 = new FormObject()
            {
                FormId            = "1",
                MultipleIteration = false
            };
            FormObject formObject2 = new FormObject()
            {
                FormId            = "1",
                MultipleIteration = false
            };
            OptionObject optionObject = new OptionObject();

            optionObject = (OptionObject)ScriptLinkHelpers.AddFormObject(optionObject, formObject1);
            optionObject = (OptionObject)ScriptLinkHelpers.AddFormObject(optionObject, formObject2);
            Assert.IsTrue(optionObject.IsFormPresent("1"));
        }