public void Contructor_Tests(StatName name, StatValue value, StatWeighting weighting) { // Act var stat = new Stat(name, value, weighting); // Assert stat.Name.Should().Be(name); stat.Value.Should().Be(value); stat.Weighting.Should().Be(weighting); stat.Score.Should().NotBeNull(); }
public void Constructor_Tests( StatName name, StatValue value, StatWeighting weighting, decimal score ) { // Arrange var stat = new Stat(name, value, weighting); // Act var statScore = new StatScore(stat); // Assert score.Should().Be(statScore.ToDecimal()); }