Exemplo n.º 1
0
        public void ToResultExpression_When_UnitHasExponent_Then_ResultShouldBeExpected()
        {
            var testee = new FlatUnit("s", exponent: 2).GetFlatIdentifierRepresentation();

            var result = testee.ToResultingExpression();

            result.ToString().Should().Be("s²");
        }
Exemplo n.º 2
0
        public void ToResultExpression_When_SingleUnitRaisedInMinusOne_Then_ResultShouldBeSingleUnit()
        {
            var testee = new FlatUnit("s", -1).GetFlatIdentifierRepresentation();

            var result = testee.ToResultingExpression();

            result.ToString().Should().Be("s");
        }