Example #1
0
        public void Implicit_int()
        {
            var s = Score.Zero;

            s.IncreaseBy(Points.From(10));

            int val = s;

            val.Should().Be(10);
        }
Example #2
0
        public void Increase()
        {
            var s = Score.Zero;

            s.IncreaseBy(Points.From(10));

            s.Value.Should().Be(10);

            Score.Zero.Value.Should().Be(0);

            s.IncreaseBy(Points.From(10));
            s.Value.Should().Be(20);
        }