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

            // action
            var result = sp.Exp(1);

            // assert
            Assert.AreEqual(Math.E, result);
        }
Exemplo n.º 2
0
        public void Exp_Int_ReturnInt()
        {
            // arrange
            var sp = new ScalarPrimitives <int, int>();

            // action
            var result = sp.Exp(0);

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