public void ReturnsCorrectValue(Gender gender, string values, string expected) { var entity = new Mobile(new ProtoMobile() { Gender = gender }); Assert.Equal(expected, entity.Affix(values)); }
public static void ActEnterFrom(this Mobile actor, Direction fromDir) { var direction = fromDir == Direction.Up ? "сверху" : fromDir == Direction.Down ? "снизу" : fromDir == Direction.Somewhere ? "откуда-то" : $"с {fromDir.GetName()}а"; actor.Perform($"{actor.Name.Nom} приш{actor.Affix("ел|ла|ло")} {direction}.<br>"); }
public static void ActDrop(this Mobile actor, Item item) { actor.Report($"Вы бросили {item.Name.Acc}.<br>"); actor.Perform($"{actor.Name.Nom} броси{actor.Affix("л|ла|ло")} {item.Name.Acc}.<br>"); }
public static void ActTake(this Mobile actor, Item item) { actor.Report($"Вы взяли {item.Name.Acc}.<br>"); actor.Perform($"{actor.Name.Nom} взя{actor.Affix("л|ла|ло")} {item.Name.Acc}.<br>"); }