public void IsRowMarkedForDeletion_OptionObject2015_Null() { string rowId = "1||1"; OptionObject2015 optionObject = null; Assert.IsTrue(optionObject.IsRowMarkedForDeletion(rowId)); }
public void IsRowMarkedForDeletion_OptionObject2015_FirstForm_IsNotMarked() { string rowId = "1||1"; FormObject formObject = new FormObject("1"); formObject.AddRowObject(new RowObject(rowId)); OptionObject2015 optionObject = new OptionObject2015(); optionObject.AddFormObject(formObject); Assert.IsFalse(optionObject.IsRowMarkedForDeletion(rowId)); }
public void IsRowMarkedForDeletion_OptionObject2015_IsNotPresent() { string rowId = "1||1"; RowObject rowObject = new RowObject(rowId); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); OptionObject2015 optionObject = new OptionObject2015(); optionObject.AddFormObject(formObject); Assert.IsFalse(optionObject.IsRowMarkedForDeletion("2||1")); }
public void IsRowMarkedForDeletion_OptionObject2015_SecondForm_IsNotMarked() { string rowId = "2||1"; FormObject formObject1 = new FormObject("1"); formObject1.AddRowObject(new RowObject()); FormObject formObject2 = new FormObject("2"); formObject2.AddRowObject(new RowObject(rowId)); OptionObject2015 optionObject = new OptionObject2015(); optionObject.AddFormObject(formObject1); optionObject.AddFormObject(formObject2); Assert.IsFalse(optionObject.IsRowMarkedForDeletion(rowId)); }