public void ItShouldTrimArray() { Vector<byte> testVector = new Vector<byte>(); testVector.Add(1); testVector.Add(0); testVector.Add(1); int expected = testVector.GetLength() / 2; testVector.Trim(); int actual = testVector.GetLength(); Assert.AreEqual(expected, actual); }