public void OptionObject_GetMultipleIterationStatus_IsNotFound()
        {
            OptionObject optionObject = new OptionObject();
            var          actual       = optionObject.GetMultipleIterationStatus("1");

            Assert.IsFalse(actual);
        }
Пример #2
0
        public void GetMultipleIterationStatusOptionObjectNullReturnsError()
        {
            OptionObject optionObject = null;
            bool         expected     = true;

            Assert.AreEqual(expected, optionObject.GetMultipleIterationStatus("1"));
        }
        public void OptionObject_GetMultipleIterationStatus_IsFalse()
        {
            OptionObject optionObject = new OptionObject();
            FormObject   formObject   = new FormObject
            {
                FormId            = "1",
                MultipleIteration = false
            };

            optionObject.Forms.Add(formObject);
            var actual = optionObject.GetMultipleIterationStatus("1");

            Assert.IsFalse(actual);
        }
Пример #4
0
        public void GetMultipleIterationStatusOptionObjectMissingFormReturnsError()
        {
            FormObject formObject = new FormObject()
            {
                FormId            = "1",
                MultipleIteration = true
            };
            OptionObject optionObject = new OptionObject();

            optionObject.Forms.Add(formObject);
            bool expected = true;

            Assert.AreEqual(expected, optionObject.GetMultipleIterationStatus("2"));
        }
Пример #5
0
        public void GetMultipleIterationStatusOptionObjectReturnsFalse()
        {
            FormObject formObject = new FormObject()
            {
                FormId            = "1",
                MultipleIteration = false
            };
            OptionObject optionObject = new OptionObject();

            optionObject.Forms.Add(formObject);
            bool expected = false;

            Assert.AreEqual(expected, optionObject.GetMultipleIterationStatus("1"));
        }
        public void OptionObject_GetMultipleIterationStatus_IsTrue()
        {
            var actual = configuredOptionObject.GetMultipleIterationStatus("2");

            Assert.IsTrue(actual);
        }