Beispiel #1
0
        public void EntityIsNotChangedIfOriginalDoesNotHaveComponents()
        {
            _originalEntity.CopyTo(_targetEntity);

            Assert.AreEqual(0, _originalEntity.CreationIndex);
            Assert.AreEqual(1, _targetEntity.CreationIndex);
            Assert.IsEmpty(_targetEntity.GetComponents());
        }
        public void EntityIsNotChangedIfOriginalDoesNotHaveComponents()
        {
#pragma warning disable CS0618  // Type or member is obsolete
#pragma warning disable HAA0101 // Array allocation for params parameter
            _entity.CopyTo(_target);
#pragma warning restore HAA0101 // Array allocation for params parameter
#pragma warning restore CS0618  // Type or member is obsolete

            Assert.AreEqual(0, _entity.CreationIndex);
            Assert.AreEqual(1, _target.CreationIndex);
            Assert.IsEmpty(_target.GetComponents());
        }