Exemplo n.º 1
0
        public void Should_round_value_withDigit(double value, double expectedValue)
        {
            var expected = new Centijoule(expectedValue);

            var instance = new Centijoule(value);
            var actual   = instance.Round(1);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void Should_roundvalue_withMode(MidpointRounding mode, double value, double expectedValue)
        {
            var expected = new Centijoule(expectedValue);

            var instance = new Centijoule(value);
            var actual   = instance.Round(mode);

            Assert.AreEqual(expected, actual);
        }