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()));
        }
Esempio n. 2
0
 // TODO: Instead of .GetHashCode(), entities should be associated with an unique index.
 public EntityNode(IPipe <TResult, TContext> value) : base(value.GetHashCode(), value)
 {
     //
 }