Ejemplo n.º 1
0
        public void Sum18446744073709551615And1ThrowOverflow()
        {
            //Arrange
            var addULongCalculator = new AddULongCalculator();

            //Act
            addULongCalculator.Execute(18446744073709551615, 1);
        }
Ejemplo n.º 2
0
        public void Sum2And5Return7()
        {
            //Arrange
            var addULongCalculator = new AddULongCalculator();

            //Act
            var result = addULongCalculator.Execute(2, 5);

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