public void TestComparableDefault()
        {
            BinaryValue defaultValue = default(BinaryValue);

            BinaryValue defaultValueSame = default(BinaryValue);

            BinaryValue greater = new BinaryValue(BitConverter.GetBytes(2));

            Assert.AreEqual <int>(defaultValue.GetHashCode(), defaultValueSame.GetHashCode());
            Assert.AreEqual <int>(-1, defaultValue.CompareTo(greater));
            Assert.AreEqual <int>(0, defaultValue.CompareTo(defaultValueSame));
            Assert.AreEqual <int>(1, greater.CompareTo(defaultValue));
        }
        public void TestComparable()
        {
            BinaryValue less = new BinaryValue(BitConverter.GetBytes(1));

            BinaryValue same = new BinaryValue(BitConverter.GetBytes(1));

            BinaryValue greater = new BinaryValue(BitConverter.GetBytes(2));

            Assert.AreEqual <int>(less.GetHashCode(), same.GetHashCode());
            Assert.AreEqual <int>(-1, less.CompareTo(greater));
            Assert.AreEqual <int>(0, less.CompareTo(same));
            Assert.AreEqual <int>(1, greater.CompareTo(less));
        }