public void ListInt_Add() { var list = new ListInt(); list.Add(1); list.Add(2); Assert.Equal(2, list.Count); Assert.Equal(1, list[0]); Assert.Equal(2, list[1]); }
public void ListInt_Resize() { var list = new ListInt(); for (var i = 0; i < 1024; i++) { list.Add(i); } Assert.Equal(1024, list.Count); }