Пример #1
0
        public void GrainReferenceComparison_DifferentReference()
        {
            ISimpleGrain ref1 = GrainClient.GrainFactory.GetGrain <ISimpleGrain>(random.Next(), Grains.SimpleGrain.SimpleGrainNamePrefix);
            ISimpleGrain ref2 = GrainClient.GrainFactory.GetGrain <ISimpleGrain>(random.Next(), Grains.SimpleGrain.SimpleGrainNamePrefix);

            Assert.IsTrue(ref1 != ref2);
            Assert.IsTrue(ref2 != ref1);
            Assert.IsFalse(ref1 == ref2);
            Assert.IsFalse(ref2 == ref1);
            Assert.IsFalse(ref1.Equals(ref2));
            Assert.IsFalse(ref2.Equals(ref1));
        }
Пример #2
0
        public void GrainReferenceComparison_DifferentReference()
        {
            ISimpleGrain ref1 = this.GrainFactory.GetGrain <ISimpleGrain>(random.Next(), UnitTests.Grains.SimpleGrain.SimpleGrainNamePrefix);
            ISimpleGrain ref2 = this.GrainFactory.GetGrain <ISimpleGrain>(random.Next(), UnitTests.Grains.SimpleGrain.SimpleGrainNamePrefix);

            Assert.True(ref1 != ref2);
            Assert.True(ref2 != ref1);
            Assert.False(ref1 == ref2);
            Assert.False(ref2 == ref1);
            Assert.False(ref1.Equals(ref2));
            Assert.False(ref2.Equals(ref1));
        }