public void ValidatesRemoveAtMethod() { var test = new ObjArray(); test.Add(5); test.Add(3); test.RemoveAt(0); Assert.Equal(3, test[0]); }
public void ValidatesClearMethod() { var test = new ObjArray(); test.Add(5); test.Add(3); test.Clear(); Assert.Equal(0, test.Count); }
public void ValidatesCountMethod() { var test = new ObjArray(); test.Add(5); test.Add(3); test.Add(2); test.Add(6); test.Add(7); Assert.Equal(5, test.Count); }
public void ValidatesAddMethod() { var test = new ObjArray(); test.Add("Abc"); test.Add(3.02); test.Add('E'); test.Add(6); test.Add(7); Assert.Equal("Abc", test[0]); Assert.Equal(3.02, test[1]); Assert.Equal('E', test[2]); Assert.Equal(6, test[3]); Assert.Equal(7, test[4]); }