public void EndEdit_reset_edit_duration()
        {
            MockEntity entity = new MockEntity();

            entity.BeginEdit();
            int editDuration = 100;

            Thread.Sleep(editDuration);

            entity.EndEdit();
            Assert.AreEqual(0, entity.EditDuration);
        }
        public void BeginEdit_tracked_entity_mark_entity_as_editable()
        {
            MockEntity entity = new MockEntity();

            entity.IsTracked = true;

            Assert.IsFalse(entity.IsEditing);

            entity.BeginEdit();

            Assert.IsTrue(entity.IsEditing);

            entity.EndEdit();

            Assert.IsFalse(entity.IsEditing);
        }