public void ReturnsFractionForm() { //Arrange FractionMixedNumberTextResult subject = new FractionMixedNumberTextResult(new FakeResult(.5)); //Act string actual = subject.AsSystemType(); //Assert actual.Should().Be("1/2"); }
public void ReturnsEmptyStringForNoFraction() { //Arrange FractionMixedNumberTextResult subject = new FractionMixedNumberTextResult(new FakeResult(1)); //Act string actual = subject.AsSystemType(); //Assert actual.Should().BeEmpty(); }