public void GetHashCode_throws_an_exception_if_Thumbnail_is_null() { string fullSize = "fullSize"; ImagePairNames pair = new ImagePairNames(fullSize, null); Assert.Throws <NullReferenceException>(() => pair.GetHashCode()); }
public void GetHashCode_throws_an_exception_if_FullSize_is_null() { string thumbnail = "thumbnail"; ImagePairNames pair = new ImagePairNames(null, thumbnail); Assert.Throws <NullReferenceException>(() => pair.GetHashCode()); }
public void GetHashCode_is_the_combined_HashCode_of_FullSize_and_Thumbnail() { string fullSize = "fullSize"; string thumbnail = "thumbnail"; int expected = fullSize.GetHashCode() + thumbnail.GetHashCode(); ImagePairNames pair = new ImagePairNames(fullSize, thumbnail); Assert.AreEqual(expected, pair.GetHashCode()); }
public void GetHashCode_throws_an_exception_if_Thumbnail_is_null() { string fullSize = "fullSize"; ImagePairNames pair = new ImagePairNames(); pair.FullSize = fullSize; pair.GetHashCode(); }
public void GetHashCode_throws_an_exception_if_FullSize_is_null() { string thumbnail = "thumbnail"; ImagePairNames pair = new ImagePairNames(); pair.Thumbnail = thumbnail; pair.GetHashCode(); }
public void GetHashCode_throws_an_exception_if_Thumbnail_is_null() { string fullSize = "fullSize"; ImagePairNames pair = new ImagePairNames(); pair.FullSize = fullSize; pair.GetHashCode(); }
public void GetHashCode_throws_an_exception_if_FullSize_is_null() { string thumbnail = "thumbnail"; ImagePairNames pair = new ImagePairNames(); pair.Thumbnail = thumbnail; pair.GetHashCode(); }
public void GetHashCode_is_the_combined_HashCode_of_FullSize_and_Thumbnail() { string fullSize = "fullSize"; string thumbnail = "thumbnail"; int expected = fullSize.GetHashCode() + thumbnail.GetHashCode(); ImagePairNames pair = new ImagePairNames(fullSize, thumbnail); Assert.AreEqual(expected, pair.GetHashCode()); }