public void ObjectCreatedFromStringShouldGenerateTheSameString() { string agoraRecord = "\"Minha CDN\" GET 200 /robots.txt 100 312 HIT"; AgoraTemplate agoraTemplate = new AgoraTemplate(agoraRecord); Assert.AreEqual("\"Minha CDN\" GET 200 /robots.txt 100 312 HIT", agoraTemplate.ToString()); }
public void MustBePossibleToConvertMinhaCdnRecordToAgoraRecord() { string minhaCdnRecord = "312|200|HIT|\"GET /robots.txt HTTP/1.1\"|100.2"; string expectedAgoraRecord = "\"Minha CDN\" GET 200 /robots.txt 100 312 HIT"; MinhaCdnTemplate minhaCdnTemplate = new MinhaCdnTemplate(minhaCdnRecord); AgoraTemplate agoraTemplate = MinhaCdnToAgoraConverter.ToAgoraTemplate(minhaCdnTemplate); Assert.AreEqual(expectedAgoraRecord, agoraTemplate.ToString()); }