Lucene.Net.Index.TestPayloads.AssertByteArrayEquals C# (CSharp) 메소드

AssertByteArrayEquals() 개인적인 메소드

private AssertByteArrayEquals ( byte b1, byte b2 ) : void
b1 byte
b2 byte
리턴 void
        internal virtual void AssertByteArrayEquals(byte[] b1, byte[] b2)
        {
            if (b1.Length != b2.Length)
            {
                Assert.Fail("Byte arrays have different lengths: " + b1.Length + ", " + b2.Length);
            }

            for (int i = 0; i < b1.Length; i++)
            {
                if (b1[i] != b2[i])
                {
                    Assert.Fail("Byte arrays different at index " + i + ": " + b1[i] + ", " + b2[i]);
                }
            }
        }

Same methods

TestPayloads::AssertByteArrayEquals ( byte b1, byte b2, int b2offset, int b2length ) : void