public void getStringTest() { var customString = new CustomString(); customString.setString("test"); Assert.AreEqual(customString.getString(), "test"); }
public void setStringTest() { var customString = new CustomString(); customString.setString("test"); string test = customString.getString(); Assert.AreEqual(test, "test"); }
public void googlePingTest() { var customString = new CustomString(); customString.setString("hatbtapb:a/b/awbwawb.agboaobgalbea.bcaobma"); //HttpClient client = new HttpClient(); //Opens client Console.WriteLine(customString.getString()); HttpWebRequest client = (HttpWebRequest)WebRequest.Create(customString.removeEveryNthCharacter(2, false)); //var result = client.GetAsync(customString.getString()); HttpWebResponse result = (HttpWebResponse)client.GetResponse(); Assert.AreEqual(result.StatusCode, HttpStatusCode.OK); }