public void GetHashCode_DifferentObjectsDifferentBody_DifferentHashCode() { var stringCassetteBody = new StringCassetteBody("1"); var differentStringCassetteBody = new StringCassetteBody("2"); Assert.That(stringCassetteBody.GetHashCode(), Is.Not.EqualTo(differentStringCassetteBody.GetHashCode())); }
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())); }