public void GivenDifferentServerResourceId_WhenHashCodeIsComputed_ThenHashCodeShouldBeDifferent(ResourceType resourceType, string resourceId) { var newServerResourceId = new ServerResourceId(resourceType, resourceId); Assert.NotEqual(ServerResourceId.GetHashCode(), newServerResourceId.GetHashCode()); }
public void GivenSameServerResourceId_WhenHashCodeIsComputed_ThenTheSameHashCodeShouldBeGenerated() { var newServerResourceId = new ServerResourceId(DefaultResourceType, DefaultResourceId); Assert.Equal(ServerResourceId.GetHashCode(), newServerResourceId.GetHashCode()); }