public void ReturnsIntPart() { //Arrange IntegerMixedNumberTextResult subject = new IntegerMixedNumberTextResult(new FakeResult(5.5)); //Act string actual = subject.AsSystemType(); //Assert actual.Should().Be("5"); }
public void ReturnsEmptyStringForNoInteger() { //Arrange IntegerMixedNumberTextResult subject = new IntegerMixedNumberTextResult(new FakeResult(.1)); //Act string actual = subject.AsSystemType(); //Assert actual.Should().BeEmpty(); }