public void WcfServiceSourceDefinition_GetHashCode_Not_Equal_To_Zero() { const string expectedResourceName = "testResourceName"; var expectedResourceID = Guid.NewGuid(); const string expectedEndpointUrl = "testEndpointUrl"; const string expectedName = "testName"; const string expectedPath = "testPath"; var expectedId = Guid.NewGuid(); const enSourceType expectedType = enSourceType.WcfSource; const string expectedResourceType = "WcfSource"; var wcfServiceSourceDefinition = new WcfServiceSourceDefinition { ResourceName = expectedResourceName, ResourceID = expectedResourceID, EndpointUrl = expectedEndpointUrl, Name = expectedName, Path = expectedPath, Id = expectedId, Type = expectedType, ResourceType = expectedResourceType }; var hashCode = wcfServiceSourceDefinition.GetHashCode(); Assert.AreNotEqual(0, hashCode); }
public void WcfServiceSourceDefinition_GetHashCode_Expect_Zero() { var wcfServiceSourceDefinition = new WcfServiceSourceDefinition(); var hashCode = wcfServiceSourceDefinition.GetHashCode(); Assert.AreEqual(0, hashCode); }