public void ParseRequest() { var parsed = _parseManager.ParseRequest(happyPath); parsed = _parseManager.ParseRequest(test1); parsed = _parseManager.ParseRequest(test2); parsed = _parseManager.ParseRequest(test3); parsed = _parseManager.ParseRequest(testNegative); parsed = _parseManager.ParseRequest(greaterThan1000); parsed = _parseManager.ParseRequest(newDelimiter); parsed = _parseManager.ParseRequest(manyDelimiters); parsed = _parseManager.ParseRequest(specialDelimiters); Assert.Pass(); }
public void Requirement1() { var calcManager = new CalculatorManager(new CalculatorConfigModel() { MaximumNumber = int.MaxValue }); var request = _parseManager.ParseRequest("1,5000"); var answer = calcManager.ProcessCalculations(request); Assert.AreEqual(answer, 5001); var request1 = _parseManager.ParseRequest("5,tytyt"); var answer1 = calcManager.ProcessCalculations(request1); Assert.AreEqual(answer1, 5); }