-
Code's Tags
-
Your Codes
-
Reffers
-
Linked Codes
|
Code:
Short link for Twitter:
HTML:
HTML view:
Copy Source | Copy HTML- [TestFixture]
- public class Shorteners
- {
- private void RunTest(Shortener oServer)
- {
- String sRet = oServer.ConvertDataTo("http://s-c.me", ItemType.FullUrl, ItemType.ShortUrl);
- Assert.AreEqual(false,String.IsNullOrEmpty(sRet));
- Debug.WriteLine("Returns: " + sRet);
- sRet = oServer.ConvertDataTo(sRet, ItemType.ShortUrl, ItemType.FullUrl);
- if(!String.IsNullOrEmpty(sRet))
- {
- Debug.WriteLine("BackTrace: "+sRet);
- }
- }
-
- [Test]
- public void Bitly()
- {
- RunTest(new BitLy());
- }
-
- [Test]
- public void Cligs()
- {
- RunTest(new Cligs());
- }
-
-
- [Test]
- public void Isgd()
- {
- RunTest(new Isgd());
- }
- }
|