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