Ejemplo n.º 1
0
        public void AddReturnsExceptionWhenProvidedWithaString()
        {
            var mathematics = new MathematicsService();
            var s           = Int32.Parse("a");

            mathematics.Add(s, 2);
        }
Ejemplo n.º 2
0
        public void AddReturnIntWhenProvidedWithTwoInts()
        {
            var mathematics = new MathematicsService();
            var ans         = mathematics.Add(2, 4);

            Assert.IsTrue(ans == 6);
            Assert.Equals(ans, 6);
        }