示例#1
0
        public void MinusNullTest()
        {
            CharacterFluentAttributes testData = null;
            Action minus = () => { var e = -testData; };

            minus.ShouldThrow <NullReferenceException>();
        }
示例#2
0
        public void MinusTest()
        {
            var testdata = new CharacterFluentAttributes {
                LifePoints = 5
            };

            (-testdata).LifePoints.Should().Be(-5);
        }
示例#3
0
 public void AddingTest(CharacterFluentAttributes c1, CharacterFluentAttributes c2, int expectedLifePoints)
 {
     (c1 + c2).LifePoints.Should().Be(expectedLifePoints);
 }
示例#4
0
        public void AddingNullTest(CharacterFluentAttributes c1, CharacterFluentAttributes c2)
        {
            Action adding = () => { var e = c1 + c2; };

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