public void LeftTrimCleanUpMediaUrlTest() { string mediaUrl = "local.chsl.com/http://local.chsl.com/~/media/files/chsl/sports/boys/lacrosse/honors/2002.ashx"; string expected = "http://local.chsl.com/~/media/files/chsl/sports/boys/lacrosse/honors/2002.ashx"; string actual; actual = CoreExtensions.CleanUpMediaUrl(mediaUrl); Assert.AreEqual(expected, actual); }
public void CleanUpMediaUrlTest1() { string mediaUrl = "https://my.aod.org:443/~/media/extranet/bookkeepers/financial%20report%20forms/2012-13%20financial%20reports%20and%20forms%20current%20year/non-parish%20school%202012-13%20financial%20report%20worksheets.ashx"; bool isSecureConnection = true; // TODO: Initialize to an appropriate value string expected = "https://my.aod.org:443/~/media/extranet/bookkeepers/financial%20report%20forms/2012-13%20financial%20reports%20and%20forms%20current%20year/non-parish%20school%202012-13%20financial%20report%20worksheets.ashx"; string actual; actual = CoreExtensions.CleanUpMediaUrl(mediaUrl, isSecureConnection); Assert.AreEqual(expected, actual); }