using Seraphina.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; namespace Seraphina.Tests { public class SkillManagerTest { private static readonly IEnumerable validSkillPointCosts = new[] { 1, 2, 3, 4 }.Select(x => new SkillPoint(x)); private static SkillInfo MakeSkill(int id) => new SkillInfo($"id_{id}", $"name_{id}", validSkillPointCosts); [Fact] public void Ctor_AddsEventToSkillRepo() { var repo = new SkillRepo(); var mgr = new SkillManager(repo); var skill = MakeSkill(1); repo.AddSkill(skill); Assert.Contains(skill.Id, mgr.Levels.Keys); } } }