PkmnLibRSharp/PkmnLibRSharpTests/StaticData/Libraries/StaticDataTests.cs

84 lines
2.1 KiB
C#
Raw Permalink Normal View History

2022-10-01 13:39:33 +00:00
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);
}
2022-10-01 13:39:33 +00:00
[Test]
public void CreateNewStaticData()
{
var _ = Build();
2022-10-01 13:39:33 +00:00
}
[Test]
public void GetSettings()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.LibrarySettings;
}
[Test]
public void GetSpecies()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.SpeciesLibrary;
}
[Test]
public void GetMoves()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.MoveLibrary;
}
[Test]
public void GetItems()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.ItemLibrary;
}
[Test]
public void GetGrowthRates()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.GrowthRateLibrary;
}
[Test]
public void GetTypeLibrary()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.TypeLibrary;
}
[Test]
public void GetNatureLibrary()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.NatureLibrary;
}
[Test]
public void GetAbilityLibrary()
{
var library = Build();
2022-10-01 13:39:33 +00:00
var _ = library.AbilityLibrary;
}
}
}