Ejemplo n.º 1
0
        public void Round_DoubleNegative_ReturnDouble()
        {
            // arrange
            var sp = new ScalarPrimitives <double, double>();

            // action
            var result = sp.Round(-1.5);

            // assert
            Assert.AreEqual(-2.0, result);
        }
Ejemplo n.º 2
0
        public void Round_Int_ReturnInt()
        {
            // arrange
            var sp = new ScalarPrimitives <int, int>();

            // action
            var result = sp.Round(9);

            // assert
            Assert.AreEqual(9, result);
        }