public void EnumDeserilization(string json, MagicEnum expectedValue) { // Act var intSvo = JsonConvert.DeserializeObject <EnumSVO>(json); // Assert intSvo.Value.Should().Be(expectedValue); }
public BaseMagic GetMagic(MagicEnum magic) { if (magic == MagicEnum.Blizzard) { return(magics[0]); } else if (magic == MagicEnum.Fire) { return(magics[1]); } return(null); }