Exemplo n.º 1
0
        public void ReturnsFractionForm()
        {
            //Arrange
            FractionMixedNumberTextResult subject = new FractionMixedNumberTextResult(new FakeResult(.5));

            //Act
            string actual = subject.AsSystemType();

            //Assert
            actual.Should().Be("1/2");
        }
Exemplo n.º 2
0
        public void ReturnsEmptyStringForNoFraction()
        {
            //Arrange
            FractionMixedNumberTextResult subject = new FractionMixedNumberTextResult(new FakeResult(1));

            //Act
            string actual = subject.AsSystemType();

            //Assert
            actual.Should().BeEmpty();
        }