Exemplo n.º 1
0
        public void GetTerrariaMods_ShouldReturnStringArray()
        {
            string mods = "[\"FastStart\",\"HelpfulNPCs\",\"LootBags\",\"MagicStorage\"]";

            string[] expect = JsonConvert.DeserializeObject <string[]>(mods);

            string[] actual = GameModule.GetTerrariaMods("debug.json");

            Assert.Equal(expect, actual);
        }