public void SetUp()
        {
            Bitmask <long> x = new Bitmask <long> (true);

            for (int i = 0; i < 64; i++)
            {
                Assert.IsTrue(x.Get(i), "true#" + i.ToString());
            }
            x.ClearAll();
            x.SetUp(16);
            for (int i = 0; i < 16; i++)
            {
                Assert.IsFalse(x.Get(i), "SetUp#" + i.ToString());
            }
            for (int i = 16; i < 64; i++)
            {
                Assert.IsTrue(x.Get(i), "SetUp#" + i.ToString());
            }
        }
Example #2
0
		public void SetUp ()
		{
			Bitmask<long> x = new Bitmask<long> (true);
			for (int i = 0; i < 64; i++) {
				Assert.IsTrue (x.Get (i), "true#" + i.ToString ());
			}
			x.ClearAll ();
			x.SetUp (16);
			for (int i = 0; i < 16; i++) {
				Assert.IsFalse (x.Get (i), "SetUp#" + i.ToString ());
			}
			for (int i = 16; i < 64; i++) {
				Assert.IsTrue (x.Get (i), "SetUp#" + i.ToString ());
			}
		}