20 lines
572 B
C#
20 lines
572 B
C#
using System;
|
|
using NUnit.Framework;
|
|
using PkmnLibSharp.StaticData;
|
|
|
|
namespace PkmnLibRSharpTests.StaticData
|
|
{
|
|
public class SecondaryEffectTests
|
|
{
|
|
[Test]
|
|
public void BasicTests(
|
|
[Values(0, 100, 50, 22.5f)] float chance,
|
|
[Values("foo", "bar", "", "ssdsdsdsdsd")] string effectName
|
|
)
|
|
{
|
|
var effect = SecondaryEffect.Create(chance, effectName, Array.Empty<EffectParameter>());
|
|
Assert.AreEqual(effectName, effect.Name);
|
|
Assert.AreEqual(chance, effect.Chance);
|
|
}
|
|
}
|
|
} |