Beispiel #1
0
        public void Clone_GetCloneTest_ReturnsTrue()
        {
            var creature = new Creature {
                MovementPatterns = { new MovementPattern(null) }
            };
            var creatureVM = new CreatureVM(creature);

            var clone = creatureVM.Clone();

            Assert.AreEqual(true, clone != null);
        }
Beispiel #2
0
 public CreatureEditorVM(CreatureVM creatureVM)
 {
     OriginalCreature      = creatureVM;
     CreatureEditorPanelVM = new CreatureEditorPanelVM(OriginalCreature.Clone());
     CreatureEditorPanelVM.SaveRequested += (o, c) => SaveCreature(c);
 }