示例#1
0
        public void InitiativeBerechnen_ValidTestData(Dictionary <ImagoAttribut, int> values, int expectedResult)
        {
            var strategy = new InitiativeNatuerlicherWertBerechnenStrategy();

            var result = strategy.berechneNatuerlicherWert(values);

            Assert.Equal(expectedResult, result);
        }
示例#2
0
        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);
        }