public void LiveAuthUtility_GetCurrentRedirectUrl_QueryWithoutAuthParams() { Uri uri = new Uri("http://www.foo.com/callback.aspx?a=b&c=d"); Assert.AreEqual("http://www.foo.com/callback.aspx?a=b&c=d", LiveAuthUtility.GetCurrentRedirectUrl(uri)); }
public void LiveAuthUtility_GetCurrentRedirectUrl_QueryWithMixedAuthAndOtherParams() { Uri uri = new Uri("http://www.foo.com/callback.aspx?a=b&c=d&code=4342332334&state=appstate%25hellome"); Assert.AreEqual("http://www.foo.com/callback.aspx?a=b&c=d", LiveAuthUtility.GetCurrentRedirectUrl(uri)); }
public void LiveAuthUtility_GetCurrentRedirectUrl_NoQeury() { Uri uri = new Uri("http://www.foo.com/callback.aspx"); Assert.AreEqual("http://www.foo.com/callback.aspx", LiveAuthUtility.GetCurrentRedirectUrl(uri)); }