Ejemplo n.º 1
0
        public void Create_Hal_List_Confirm_The_Value_After_RemoveAt_Should_be_Removed()
        {
            HalList<int> inteiros = new HalList<int>();
            inteiros.AfterRemoveAtItem += (int index, int item) =>
                                              {
                                                  Assert.IsTrue(index == 0);
                                                  Assert.IsTrue(item == 4);
                                              };

            inteiros.Add(4);
            inteiros.RemoveAt(0);

            Assert.IsTrue(inteiros.Count == 0);
        }
Ejemplo n.º 2
0
        public void Create_Hal_List_Try_RemoveAt_Index_Does_Not_Exist_Throws_HAL_Exception()
        {
            HalList<int> inteiros = new HalList<int>();

            inteiros.RemoveAt(0);
        }