public void InitiativeBerechnen_ValidTestData(Dictionary <ImagoAttribut, int> values, int expectedResult) { var strategy = new InitiativeNatuerlicherWertBerechnenStrategy(); var result = strategy.berechneNatuerlicherWert(values); Assert.Equal(expectedResult, result); }
public void InitiativeBerechnen_InvalidInput_ThrowsException() { var strategy = new InitiativeNatuerlicherWertBerechnenStrategy(); Action testCode = () => strategy.berechneNatuerlicherWert(GetInvalidTestData()); var ex = Record.Exception(testCode); Assert.NotNull(ex); Assert.ThrowsAny <ArgumentException>(testCode); }