public void OnePatternOutput() { String inputString = "aaa"; Int32 patternLength = 2; TestPatternIO testPatternIO = new TestPatternIO(patternLength, inputString); Controller.ProcessInput(testPatternIO); Assert.AreEqual(1, testPatternIO.Output.Count); Assert.AreEqual("Pattern: aa, quantity: 2", testPatternIO.Output[0]); }
public void NoPatternsOutput() { String inputString = "abc"; Int32 patternLength = 2; TestPatternIO testPatternIO = new TestPatternIO(patternLength, inputString); Controller.ProcessInput(testPatternIO); Assert.AreEqual(1, testPatternIO.Output.Count); Assert.AreEqual("There are no repeated patterns", testPatternIO.Output[0]); }