public void ReplicatesEqualButNotSameObjects_FactoryIsCalledForEach()
        {
            var source1 = new AlwaysEqualsClass();
            var source2 = new AlwaysEqualsClass();

            replicationContext.Replicate(source1);
            replicationContext.Replicate(source2);

            replicationStrategy
                .CallsTo(x => x.Replicate(null, null)).WithAnyArguments()
                .MustHaveHappened(Repeated.Exactly.Twice);
        }
예제 #2
0
        public void ReplicatesEqualButNotSameObjects_FactoryIsCalledForEach()
        {
            var source1 = new AlwaysEqualsClass();
            var source2 = new AlwaysEqualsClass();

            replicationContext.Replicate(source1);
            replicationContext.Replicate(source2);

            replicationStrategy
            .CallsTo(x => x.Replicate(null, null)).WithAnyArguments()
            .MustHaveHappened(Repeated.Exactly.Twice);
        }
 private bool Equals(AlwaysEqualsClass other)
 {
     return true;
 }
예제 #4
0
 private bool Equals(AlwaysEqualsClass other)
 {
     return(true);
 }