Exemplo n.º 1
0
        //
        private static void TestUsingResource(string value, string message)
        {
            List<string> inputs, outputs;
              string sample;

              Extract(value, out inputs, out sample, out outputs);
              var sut = new ListTransformer(new WordSplitter(), new TemplateBuilder());

              var result = sut.Transform(inputs, sample);

              CollectionAssert.AreEqual(outputs.ToArray(), result.ToArray(), message);
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     splitter = new Mock<Splitter>();
       builder = new Mock<Builder>();
       sut = new ListTransformer(splitter.Object, builder.Object);
 }