Ejemplo n.º 1
0
        public void GetHashCode_DifferentValues_False()
        {
            var notExpected = new MS2FileHeader(new MS2SizeHeader(1, 2, 3), 4, 5, CompressionType.Zlib);

            var actual = new MS2FileHeader(new MS2SizeHeader(1, 2, 3), 4, 6, CompressionType.Zlib);

            Assert.AreNotEqual(notExpected.GetHashCode(), actual.GetHashCode());
        }
Ejemplo n.º 2
0
        public void GetHashCode_SameValues_True()
        {
            var expected = new MS2FileHeader(new MS2SizeHeader(1, 2, 3), 4, 5, CompressionType.Zlib);

            var actual = new MS2FileHeader(new MS2SizeHeader(1, 2, 3), 4, 5, CompressionType.Zlib);

            Assert.AreEqual(expected.GetHashCode(), actual.GetHashCode());
        }