public void MinusNullTest() { CharacterFluentAttributes testData = null; Action minus = () => { var e = -testData; }; minus.ShouldThrow <NullReferenceException>(); }
public void MinusTest() { var testdata = new CharacterFluentAttributes { LifePoints = 5 }; (-testdata).LifePoints.Should().Be(-5); }
public void AddingTest(CharacterFluentAttributes c1, CharacterFluentAttributes c2, int expectedLifePoints) { (c1 + c2).LifePoints.Should().Be(expectedLifePoints); }
public void AddingNullTest(CharacterFluentAttributes c1, CharacterFluentAttributes c2) { Action adding = () => { var e = c1 + c2; }; adding.ShouldThrow <NullReferenceException>(); }
public StaticItem() { AttributesEffekts = new CharacterAttributes(); FluentAttributesEffekts = new CharacterFluentAttributes(); }
public void AddingNullTest(CharacterFluentAttributes c1, CharacterFluentAttributes c2) { Action adding = () => { var e = c1 + c2; }; adding.ShouldThrow<NullReferenceException>(); }