public void TestBucketsReset() { var b = new Buckets(5, 2); for (uint i = 0; i < 5; i++) { b.Increment(i, 1); } var resetB = b.Reset(); Assert.AreSame(b, resetB, "Returned Buckets should be the same instance"); for (uint i = 0; i < 5; i++) { var c = b.Get(i); Assert.AreEqual(0u, c); } }