public void IPipes_InMemoryMustHaveSameHashCodes()
        {
            IPipe p = new IPipe();
            IPipe q = p;
            IPipe z = new IPipe();

            Assert.True(q.GetHashCode().Equals(q.GetHashCode()));
            Assert.False(q.GetHashCode().Equals(z.GetHashCode()));
        }
예제 #2
0
파일: EntityNode.cs 프로젝트: BowsiePup/Ion
 // TODO: Instead of .GetHashCode(), entities should be associated with an unique index.
 public EntityNode(IPipe <TResult, TContext> value) : base(value.GetHashCode(), value)
 {
     //
 }