public void Test_GetDynamicID() { Guid expectedID = new Guid("2a7ecbc7-b22c-4bca-908f-955f7a59ef51"); string originalUrl = "http://localhost/MockApplication/Edit-UserRole/" + expectedID.ToString() + "/Administrator.aspx"; ProjectionMapper mapper = new ProjectionMapper(); mapper.Converter = new MockUrlConverter(); string shortPath = mapper.GetShortPath(originalUrl); Guid foundID = mapper.GetDynamicID(originalUrl); Assert.AreEqual(expectedID.ToString(), foundID.ToString(), "ID doesn't match expected."); }