public void DeriveBitTransformationsSameIndexTest() { ShaChain shaChain = new ShaChain(new byte[1]); var result = shaChain.DeriveBitTransformations(12, 12); Assert.Empty(result); }
public void DeriveBitTransformationsTest() { ShaChain shaChain = new ShaChain(new byte[1]); var result = shaChain.DeriveBitTransformations(0, 2); Assert.Single(result); Assert.Equal(1, result[0]); }
public void DeriveBitTransformationsCantDeriveTest() { ShaChain shaChain = new ShaChain(new byte[1]); Assert.Throws <InvalidOperationException>(() => shaChain.DeriveBitTransformations(12, 4)); }