public void Compress_Javascript_String() { var exampleJSScript = @"function myfunction(txt) { alert(txt); } "; var target = new YUICompression(); var result = target.CompressJavascriptString(exampleJSScript); Assert.IsTrue(result.Length < exampleJSScript.Length); }
public void Compress_Css_String() { var exampleCss = @"body { line-height: 1; text-align: left; }"; var target = new YUICompression(); var result = target.CompressCssString(exampleCss); Assert.IsTrue(result.Length < exampleCss.Length); }
public void YUICompressionConstructTest() { var target = new YUICompression(); Assert.IsNotNull(target); }