示例#1
0
        public virtual void Update()
        {
            Translation translation = movement.Translation();

            Translate(translation);

            merging.Merge(this, translation);
        }
        [Test] public void ShouldPerformAMergeWhenUpdating()
        {
            BlockGroup  group       = CreateBlockGroup();
            Translation translation = new Translation(1, 1);

            When.Called(() => movement.Translation()).Then.Return(translation);

            group.Update();

            Verify.That(() => merging.Merge(group, translation)).IsCalled();
        }