Ejemplo n.º 1
0
        public void GetHashCode_SameReferenceWithRootFolder_True()
        {
            var expected = new MS2FileInfo("1", "Root/Path");

            var actual = expected;

            Assert.AreEqual(expected.GetHashCode(), actual.GetHashCode());
        }
Ejemplo n.º 2
0
        public void GetHashCode_SameValues_True()
        {
            var expected = new MS2FileInfo("1", "Path");

            var actual = new MS2FileInfo("1", "Path");

            Assert.AreEqual(expected.GetHashCode(), actual.GetHashCode());
        }
Ejemplo n.º 3
0
        public void GetHashCode_DifferentValuesWithRootFolder_False()
        {
            var notExpected = new MS2FileInfo("1", "Root/Path");

            var actual = new MS2FileInfo("", "Root/Path");

            Assert.AreNotEqual(notExpected.GetHashCode(), actual.GetHashCode());
        }