public bool Equals(IFileInformation x, IFileInformation y)
        {
            if (x == null || y == null)
            {
                return(x == y);
            }

            if (x.Length == y.Length && Arrays.AreEquivalent(x.MD5Hash, y.MD5Hash))
            {
                return(true);
            }

            return(false);
        }
Beispiel #2
0
 public void ValueArrayEquivalencyTest(int[] left, int[] right, bool expected)
 {
     Arrays.AreEquivalent(left, right).Should().Be(expected);
 }
Beispiel #3
0
 public void ReferenceArrayEquivalencyTest(string[] left, string[] right, bool expected)
 {
     Arrays.AreEquivalent(left, right).Should().Be(expected);
 }