public void UglifySmokeTest() { using (var fixture = new UglifyCompiler(new InstanceProvider <IJavaScriptRuntime>( () => new IEJavaScriptRuntime()))) { var input = "var someLongVariableName = 4;"; string output = fixture.Compile(input); Console.WriteLine("Input: '{0}', Output: '{1}'", input, output); Assert.True(output.Length < input.Length); } }
public string Minify(string code) { return(_compiler.Compile(code)); }