public void GetBaseNotation_Then_ResultShouldBeKg() { var testee = new NotationBaseUnit("g", new PrefixedBaseUnit(Prefixes.Kilo, "g")); var result = testee.GetBaseNotation(); result.Should().Be("kg"); }
public void ToBase_When_UnitIsGramAndBaseUnitIsKiloGram_ThenResultShouldBeExpected() { const double Expected = 0.001; var testee = new NotationBaseUnit("g", new PrefixedBaseUnit(Prefixes.Kilo, "g")); var result = testee.ToBase(1); result.Should().Be(Expected); }