コード例 #1
0
        public void GetHashCode_DifferentObjectsDifferentBody_DifferentHashCode()
        {
            var stringCassetteBody          = new StringCassetteBody("1");
            var differentStringCassetteBody = new StringCassetteBody("2");

            Assert.That(stringCassetteBody.GetHashCode(), Is.Not.EqualTo(differentStringCassetteBody.GetHashCode()));
        }
コード例 #2
0
        public void GetHashCode_DifferentObjectsSameBody_EqualHashCode()
        {
            var stringCassetteBody          = new StringCassetteBody("some text");
            var differentStringCassetteBody = new StringCassetteBody("some text");

            Assert.That(stringCassetteBody.GetHashCode(), Is.EqualTo(differentStringCassetteBody.GetHashCode()));
        }