public void TestResponsiveWidthTransform()
{
// should support responsive width
var trans = new Transformation().Width(100).Height(100).Crop("crop").ResponsiveWidth(true);
var result = m_api.UrlImgUp.Transform(trans).BuildUrl("test");
Assert.True(trans.IsResponsive);
Assert.AreEqual(m_defaultImgUpPath + "c_crop,h_100,w_100/c_limit,w_auto/test", result);
Transformation.ResponsiveWidthTransform = new Transformation().Width("auto").Crop("pad"); trans = new Transformation().Width(100).Height(100).Crop("crop").ResponsiveWidth(true);
result = m_api.UrlImgUp.Transform(trans).BuildUrl("test");
Assert.True(trans.IsResponsive);
Assert.AreEqual(m_defaultImgUpPath + "c_crop,h_100,w_100/c_pad,w_auto/test", result);
Transformation.ResponsiveWidthTransform = null;
}