コード例 #1
0
        public void OptionObject_GetCurrentRowId_Error()
        {
            OptionObject optionObject = new OptionObject();
            var          actual       = optionObject.GetCurrentRowId("1");

            Assert.AreEqual(null, actual);
        }
コード例 #2
0
        public void OptionObject_GetCurrentRowId_AreEqual()
        {
            RowObject rowObject = new RowObject
            {
                RowId = "1||1"
            };
            FormObject formObject = new FormObject
            {
                FormId     = "1",
                CurrentRow = rowObject
            };
            OptionObject optionObject = new OptionObject();

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

            Assert.AreEqual("1||1", actual);
        }