示例#1
0
        public void AddReturnsExceptionWhenProvidedWithaString()
        {
            var mathematics = new MathematicsService();
            var s           = Int32.Parse("a");

            mathematics.Add(s, 2);
        }
示例#2
0
        public void AddReturnIntWhenProvidedWithTwoInts()
        {
            var mathematics = new MathematicsService();
            var ans         = mathematics.Add(2, 4);

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