public void CreateBitMask04_uint64_01StartBitsOn() { TestHelpers.CatchUnexpected(() => { UInt64 mask = 0xFFFFFFFFFFFFFFFF; //0, 0, 0, 0, 1, 0, 0, 1 byte[] bits = new byte[] { 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1 }; bool result = this.FromVisualArray(bits).CreateBitMask(ref mask); Assert.True(result, "Creating bit mask"); Assert.AreEqual("1000 0111 0000 1001 1000 0111 0000 1001 1000 0111 0000 1001 1000 0111 0000 1001", mask.GetBitString()); Assert.AreEqual(9730456944900671241, mask); //ByteHelpers }); }