public void TestMethod1() { var animals = new IAnimal[] { _dog, _cat, _fish }; var c = animals.Contains(_dog); var xStrings = new string[] { "hello", "world" }; var s = xStrings.XHasStringIgnoreCase("HELLO"); }
public void Remove__An_Array_Can_Remove_An_Item() { var animals = new IAnimal[] { _dog, _cat, _fish }; animals.Remove(ref animals, _dog); Assert.IsTrue(!animals.Contains(_dog)); }
public void RemoveAt__An_Array_Can_Remove_An_Item_At_A_Given_Index() { var animals = new IAnimal[] { _dog, _cat, _fish }; animals.RemoveAt(ref animals, 0); Assert.IsTrue(!animals.Contains(_dog)); }