public void checkUrlTest() { RemoteDataStoreService target = new RemoteDataStoreService(); Guid pReqID = new Guid(); string pUrl = System.IO.Path.GetFullPath(_testResourceDir); pUrl = System.IO.Path.Combine(pUrl, @"PISBase-1.0.0.0.zip"); pUrl = @"\\127.0.0.1\" + pUrl.Replace(':', '$'); bool actual; actual = target.checkUrl(pReqID, pUrl); Assert.IsTrue(actual); pUrl = "ftp://nustufru:56/"; actual = target.checkUrl(pReqID, pUrl); Assert.IsFalse(actual); }