Esempio n. 1
0
        public void RequirementSeven_PreviousFormat()
        {
            /// Arrange
            AddEvaluator evaluator = new AddEvaluator();
            var          input     = "2,5,3";

            /// Act
            var total = evaluator.RequirementSeven(input);

            /// Assert
            Assert.AreEqual(10, total);
        }
Esempio n. 2
0
        public void RequirementSeven_AlternativeManyCharacterFormat()
        {
            /// Arrange
            AddEvaluator evaluator = new AddEvaluator();
            var          input     = "//[***]\n11***22***33";

            /// Act
            var total = evaluator.RequirementSeven(input);

            /// Assert
            Assert.AreEqual(66, total);
        }