Exemplo n.º 1
0
        public void Round_ReturnsRoundedNumber()
        {
            //  arrange
            float a = 77.123f;
            float b = 99.987f;
            float c = 88.34567f;

            //  act
            a = PMath.Round(a);
            b = PMath.Round(b);
            c = PMath.Round(c, 3);

            //  assert
            Assert.AreEqual(77, a);
            Assert.AreEqual(100, b);
            Assert.AreEqual(88.346f, c);
        }