public void Uint_BitLengthNot8_ThrowsException() { Assert.ThrowsAny <Exception>(() => SSZ.EncodeUint(100, 10)); }
public void Uint_DoesntFit_ThrowsException() { Assert.ThrowsAny <Exception>(() => SSZ.EncodeUint(257, 8)); }
public void EncodeUints(ulong value, int bits, byte[] expectedBytes) { byte[] encoded = SSZ.EncodeUint(value, bits); Assert.Equal(expectedBytes, encoded); }