implemented skill system according to designdocuments
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using NUnit.Framework;
|
||||
using NightclubArcadia.Skills;
|
||||
|
||||
namespace NightclubArcadia.Skills.Tests
|
||||
{
|
||||
public class DcBandTests
|
||||
{
|
||||
[TestCase("standard", 11)]
|
||||
[TestCase("STANDARD", 11)]
|
||||
[TestCase("13", 13)]
|
||||
[TestCase("-3", -3)]
|
||||
public void TryParse_AcceptsBandNamesAndIntegers(string input, int expected)
|
||||
{
|
||||
Assert.IsTrue(DcBands.TryParse(input, out var dc));
|
||||
Assert.AreEqual(expected, dc);
|
||||
}
|
||||
|
||||
[TestCase("banana")]
|
||||
[TestCase("")]
|
||||
[TestCase(null)]
|
||||
public void TryParse_RejectsGarbage(string input)
|
||||
{
|
||||
Assert.IsFalse(DcBands.TryParse(input, out _));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user