public void IsSingleDigitNumber_When0Through9_ShouldReturnTrue(int units)
        {
            //---------------Arrange-------------------
            var sut = new ExpandedDigits
            {
                Units = units
            };
            //---------------Act----------------------
            var actual = sut.IsSingleDigitNumber();

            //---------------Assert-----------------------
            actual.Should().BeTrue();
        }
        public void IsSingleDigitNumber_WhenIs10_ShouldReturnFalse()
        {
            //---------------Arrange-------------------
            var sut = new ExpandedDigits
            {
                Tens  = 1,
                Units = 0
            };
            //---------------Act----------------------
            var actual = sut.IsSingleDigitNumber();

            //---------------Assert-----------------------
            actual.Should().BeFalse();
        }
Example #3
0
 private bool MultiDigitNumberEndingWithZero(ExpandedDigits digits)
 {
     return(!digits.IsSingleDigitNumber() && digits.Units == 0);
 }