public void Test_GetHashCode() { var node1 = new ClusterNode(new ClusterContext(), new JsonTranscoder(), new CircuitBreaker()) { Owner = new Mock <IBucket>().Object, //EndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 10210) }; var node2 = new ClusterNode(new ClusterContext(), new JsonTranscoder(), new CircuitBreaker()) { Owner = new Mock <IBucket>().Object, //EndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 10210) }; Assert.NotEqual(node1.GetHashCode(), node2.GetHashCode()); }
public void Test_GetHashCode() { var pool = new DefaultObjectPool <OperationBuilder>(new OperationBuilderPoolPolicy()); var node1 = new ClusterNode(new ClusterContext(), pool, new CircuitBreaker()) { Owner = new Mock <IBucket>().Object, //EndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 10210) }; var node2 = new ClusterNode(new ClusterContext(), pool, new CircuitBreaker()) { Owner = new Mock <IBucket>().Object, //EndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 10210) }; Assert.NotEqual(node1.GetHashCode(), node2.GetHashCode()); }