Exemple #1
0
		public void Reset ()
		{
			ArrayPoolNode<byte> root = new ArrayPoolNode<byte> ();
			Assert.IsTrue (root.IsEmpty ());

			var first = new byte[6];
			root.Reserve (first);

			Assert.IsFalse (root.IsEmpty ());
			root.Reset ();
			Assert.IsTrue (root.IsEmpty ());
			Assert.AreEqual (0, root.Lowest);
			Assert.AreEqual (0, root.Highest);
			Assert.IsNull (root.Data_0);
			Assert.IsNull (root.Data_1);
			Assert.IsNull (root.Data_2);
			Assert.IsNull (root.Left);
			Assert.IsNull (root.Right);
		}