using System; using NUnit.Framework; using PkmnLibSharp.StaticData; namespace PkmnLibRSharpTests.StaticData { public class MoveDataTests { [Test] public void BasicTests() { using var move = new MoveData("foobar", new TypeIdentifier(), MoveCategory.Physical, 68, 23, 56, MoveTarget.Any, -3, null, Array.Empty()); Assert.AreEqual("foobar", move.Name); Assert.AreEqual(MoveCategory.Physical, move.Category); Assert.AreEqual(68, move.BasePower); Assert.AreEqual(23, move.Accuracy); Assert.AreEqual(56, move.BaseUsages); Assert.AreEqual(MoveTarget.Any, move.Target); Assert.AreEqual(-3, move.Priority); Assert.AreEqual(null, move.SecondaryEffect); } [Test] public void TestMoveWithSecondaryEffect() { using var effect = new SecondaryEffect(0.25f, "foobar", Array.Empty()); using var move = new MoveData("foobar", new TypeIdentifier(), MoveCategory.Physical, 68, 23, 56, MoveTarget.Any, -3, effect, Array.Empty()); Assert.That(move.SecondaryEffect != null); Assert.AreEqual("foobar", move.SecondaryEffect!.Name); } } }