void ValidateLogCountWithBreaks(LogHeightClass lhc, int numLogsBase, IEnumerable <uint> breaks) { lhc.GetDefaultLogCount(0).Should().Be(numLogsBase); lhc.GetDefaultLogCount(breaks.First() - .01f).Should().Be(numLogsBase); lhc.GetDefaultLogCount(breaks.First()).Should().Be(numLogsBase + 1); lhc.GetDefaultLogCount(breaks.ElementAt(1)).Should().Be(numLogsBase + 2); }
public void GetDefaultLogCountTest() { var dbh = 5; var numLogsBase = 10; var numLogsExpected = numLogsBase; var lhc = new LogHeightClass(0, 0, numLogsBase); lhc.GetDefaultLogCount(dbh).Should().Be(numLogsExpected); }