public void Parse_the_wrong_url() { var auth = new VkAuthorization(); var response = auth.ParseResultUrl(exampleUrlWrongAnswer); Assert.That(response.Successful, Is.False); }
public void Parse_the_url() { var auth = new VkAuthorization(); var response = auth.ParseResultUrl(exampleUrlCorrectAnswer); Assert.That(response.Successful, Is.True); Assert.That(response.TokenResponse, Is.EqualTo(EXAMPLE_TOKEN)); Assert.That(response.UserId, Is.EqualTo(EXAMPLE_USERID)); }