コード例 #1
0
        public void GivenDifferentServerResourceId_WhenHashCodeIsComputed_ThenHashCodeShouldBeDifferent(ResourceType resourceType, string resourceId)
        {
            var newServerResourceId = new ServerResourceId(resourceType, resourceId);

            Assert.NotEqual(ServerResourceId.GetHashCode(), newServerResourceId.GetHashCode());
        }
コード例 #2
0
        public void GivenSameServerResourceId_WhenHashCodeIsComputed_ThenTheSameHashCodeShouldBeGenerated()
        {
            var newServerResourceId = new ServerResourceId(DefaultResourceType, DefaultResourceId);

            Assert.Equal(ServerResourceId.GetHashCode(), newServerResourceId.GetHashCode());
        }