/// <summary> /// Checks if the List Item in the index provided does NOT matches the provided expectedItem /// /// If index is bigger than the size of the list provided it is assumed that they are not equal /// </summary> /// <typeparam name="T"></typeparam> /// <param name="target"></param> /// <param name="index"></param> /// <param name="expectedItem"></param> /// <returns></returns> public static List <T> assert_Item_Not_Equal <T>(this List <T> target, int index, T expectedItem) { if (target.size() > index) { var itemAtIndex = target.value(index); if (itemAtIndex.notNull()) { nUnitTests.assert_Not_Equal(itemAtIndex, expectedItem); } } return(target); }