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