using NUnit.Framework; using PkmnLibSharp.StaticData.Libraries; namespace PkmnLibRSharpTests.StaticData.Libraries { public class StaticDataTests { private static PkmnLibSharp.StaticData.Libraries.StaticData Build() { var settings = LibrarySettings.Create(100, 4096); var species = SpeciesLibrary.Create(0); var moves = MoveLibrary.Create(0); var items = ItemLibrary.Create(0); var growthRates = GrowthRateLibrary.Create(0); var types = TypeLibrary.Create(0); var natures = NatureLibrary.Create(0); var abilities = AbilityLibrary.Create(0); return PkmnLibSharp.StaticData.Libraries.StaticData.Create(settings, species, moves, items, growthRates, types, natures, abilities); } [Test] public void CreateNewStaticData() { var _ = Build(); } [Test] public void GetSettings() { var library = Build(); var _ = library.LibrarySettings; } [Test] public void GetSpecies() { var library = Build(); var _ = library.SpeciesLibrary; } [Test] public void GetMoves() { var library = Build(); var _ = library.MoveLibrary; } [Test] public void GetItems() { var library = Build(); var _ = library.ItemLibrary; } [Test] public void GetGrowthRates() { var library = Build(); var _ = library.GrowthRateLibrary; } [Test] public void GetTypeLibrary() { var library = Build(); var _ = library.TypeLibrary; } [Test] public void GetNatureLibrary() { var library = Build(); var _ = library.NatureLibrary; } [Test] public void GetAbilityLibrary() { var library = Build(); var _ = library.AbilityLibrary; } } }