Пример #1
0
        public void Add_Double_ReturnDouble()
        {
            // arrange
            var sp = new ScalarPrimitives <double, double>();

            // action
            var result = sp.Add(3.0, 4.0);

            // assert
            Assert.AreEqual(7.0, result);
        }
Пример #2
0
        public void Add_Int_ReturnInt()
        {
            // arrange
            var sp = new ScalarPrimitives <int, int>();

            // action
            var result = sp.Add(3, 4);

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