public void CountSetBits(int expected, ulong value) { Bitboard bb = value; // xUnit has problems with recognizing conversions to custom types Assert.Equal(expected, bb.CountSetBits()); }