21 lines
854 B
C#
21 lines
854 B
C#
using NUnit.Framework;
|
|
using PkmnLibSharp.StaticData;
|
|
|
|
namespace PkmnLibRSharpTests.StaticData
|
|
{
|
|
public class StaticStaticStatisticSetTests
|
|
{
|
|
[Test]
|
|
public void UShortStaticStatisticSet([Random(1)] ushort hp, [Random(1)] ushort attack, [Random(1)] ushort defense,
|
|
[Random(1)] ushort specialAttack, [Random(1)] ushort specialDefense, [Random(1)] ushort speed)
|
|
{
|
|
var set = StaticStatisticSet<ushort>.Create(hp, attack, defense, specialAttack, specialDefense, speed);
|
|
Assert.AreEqual(set.HP, hp);
|
|
Assert.AreEqual(set.Attack, attack);
|
|
Assert.AreEqual(set.Defense, defense);
|
|
Assert.AreEqual(set.SpecialAttack, specialAttack);
|
|
Assert.AreEqual(set.SpecialDefense, specialDefense);
|
|
Assert.AreEqual(set.Speed, speed);
|
|
}
|
|
}
|
|
} |