예제 #1
0
        public void ArrayFormaters_IsCalling()
        {
            simpleWordPreprocessor.Handle(strings);

            wordFormater1.Received().HandleWords(Arg.Any <IEnumerable <string> >());
            wordFormater2.Received().HandleWords(Arg.Any <IEnumerable <string> >());
        }
예제 #2
0
        public void DoingNothingWithArray_IfArrayFormatersCountEquallyZero()
        {
            simpleWordPreprocessor = new SimpleWordPreprocessor(new IWordFormater[] { });

            simpleWordPreprocessor.Handle(strings).Should().Equal(strings);
        }
예제 #3
0
        public void DoingNothingWithArray_IfArrayFormatersNull()
        {
            simpleWordPreprocessor = new SimpleWordPreprocessor(null);

            simpleWordPreprocessor.Handle(strings).Should().Equal(strings);
        }