コード例 #1
0
 public static OutputWriter Make(CompilerArguments arguments, string file, IOutputStreamFactory streamFactory)
 {
     return(new(
                TransformerChainFactory.Create(arguments),
                streamFactory.Make(file)
                ));
 }
コード例 #2
0
        public void TestItAddsTransformers()
        {
            List <Type> expected = new(new[]
            {
                typeof(RemoveAllComments),
                typeof(ReplaceTokens)
            }
                                       );

            Assert.Equal(
                expected,
                TransformerChainFactory.Create(CompilerArgumentsFactory.Make()).GetTransformerTypes()
                );
        }