public void ToResultExpression_When_UnitHasExponent_Then_ResultShouldBeExpected() { var testee = new FlatUnit("s", exponent: 2).GetFlatIdentifierRepresentation(); var result = testee.ToResultingExpression(); result.ToString().Should().Be("s²"); }
public void ToResultExpression_When_SingleUnitRaisedInMinusOne_Then_ResultShouldBeSingleUnit() { var testee = new FlatUnit("s", -1).GetFlatIdentifierRepresentation(); var result = testee.ToResultingExpression(); result.ToString().Should().Be("s"); }