2022-10-01 13:39:33 +00:00
|
|
|
using NUnit.Framework;
|
|
|
|
using PkmnLibSharp.StaticData.Libraries;
|
|
|
|
|
|
|
|
namespace PkmnLibRSharpTests.StaticData.Libraries
|
|
|
|
{
|
|
|
|
public class StaticDataTests
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
private static PkmnLibSharp.StaticData.Libraries.StaticData Build()
|
2023-01-03 12:57:29 +00:00
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
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,
|
2023-01-03 12:57:29 +00:00
|
|
|
growthRates, types, natures, abilities);
|
|
|
|
}
|
|
|
|
|
2022-10-01 13:39:33 +00:00
|
|
|
[Test]
|
|
|
|
public void CreateNewStaticData()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var _ = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetSettings()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.LibrarySettings;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetSpecies()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.SpeciesLibrary;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetMoves()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.MoveLibrary;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetItems()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.ItemLibrary;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetGrowthRates()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.GrowthRateLibrary;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetTypeLibrary()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.TypeLibrary;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetNatureLibrary()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.NatureLibrary;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void GetAbilityLibrary()
|
|
|
|
{
|
2023-06-25 14:30:12 +00:00
|
|
|
var library = Build();
|
2022-10-01 13:39:33 +00:00
|
|
|
var _ = library.AbilityLibrary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|