public int MaxThrow_ShouldWork(int siteswap) { var sut = new Siteswap(siteswap); var result = sut.MaxThrow(); return(result); }
public void GenerateHandStatus_ShouldWork(int siteswap) { var sut = new Siteswap(siteswap); var result = sut.GenerateHandStatus(); var expectedValues = new CyclicArray <HandStatus>(new [] { HandStatus.Empty, HandStatus.Empty, HandStatus.Full, HandStatus.Empty, HandStatus.Full }); Assert.Multiple(() => { for (int i = 0; i < sut.MaxThrow(); i++) { Assert.That(result[i], Is.EqualTo(expectedValues[i]), $"Position {i} ist falsch"); } }); }