使用FluentAssertions
,是否有任何好的方法来确认小数点后的字符数?我一直在寻找最好的方法来做到这一点,但找不到太多。
或者在字符串表示上使用Should().MatchRegex()
我认为你应该使用Should().BeApproximately(args)
或Should.BeInRange(args)