Exemplo n.º 1
0
        public void GetBaseNotation_Then_ResultShouldBeKg()
        {
            var testee = new NotationBaseUnit("g", new PrefixedBaseUnit(Prefixes.Kilo, "g"));

            var result = testee.GetBaseNotation();

            result.Should().Be("kg");
        }
Exemplo n.º 2
0
        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);
        }