Exemple #1
0
        public string MaxLittleEndianUnsignedTest(byte[] alpha,
                                                  byte[] beta)
        {
            // Act
            var result = ByteArrayMath.Max(alpha, beta, true);

            // Assert
            return(result.ToHexString());
        }
Exemple #2
0
        public string MaxBigEndianSignedTest(byte[] alpha,
                                             byte[] beta)
        {
            // Act
            var result = ByteArrayMath.Max(alpha, beta, false, true);

            // Assert
            return(result.ToHexString());
        }
Exemple #3
0
 public void MaxNullBetaTest()
 {
     Assert.Throws <ArgumentNullException>(() => ByteArrayMath.Max(new byte[] { 0x42 }, null));
 }