CloudinaryDotNet.Test.ApiTest.EndIf C# (CSharp) Method

EndIf() private method

private EndIf ( ) : void
return void
        public void EndIf()
        {
            Transformation transformation = new Transformation().IfCondition("w_lt_200").Crop("fill").Height(120).Width(80).Effect("sharpen")
                .Chain().Effect("brightness", 50)
                .Chain().Effect("shadow").Color("red")
                .EndIf();
            string sTransform = transformation.ToString();
            Assert.IsTrue(sTransform.EndsWith("if_end"), "should include the if_end as the last parameter in its component");
            Assert.AreEqual("if_w_lt_200/c_fill,e_sharpen,h_120,w_80/e_brightness:50/co_red,e_shadow/if_end", sTransform, "should be proper transformation string");
        }
ApiTest