public void TheUserIdShouldNotBeNullIfTheLastIsNotEmpty(string accessToken, string id) { var userId = FacebookSession.ParseUserIdFromAccessToken(accessToken); Assert.NotNull(userId); Assert.Equal(id, userId); }
public void TheUserIdShouldBeNull() { var accessToken = "a||bc"; var userId = FacebookSession.ParseUserIdFromAccessToken(accessToken); Assert.Null(userId); }
public void TheUserIdShouldBeNull() { string appId = "123"; string appSecret = " A12aB"; var userId = FacebookSession.ParseUserIdFromAccessToken(string.Format("{0}|{1}", appId, appSecret)); Assert.Null(userId); }
public void ResultShouldBeNull(string accessToken) { var userId = FacebookSession.ParseUserIdFromAccessToken(accessToken); Assert.Null(userId); }
public void TheResultShouldNotBeNull() { var userId = FacebookSession.ParseUserIdFromAccessToken("1249203702|76a68f298-100001327642026|q_BXv8TmYg"); Assert.NotEqual(null, userId); }
public void TheUserIdShouldBeCorrectlyExtractedFromTheAccessToken() { var userId = FacebookSession.ParseUserIdFromAccessToken("1249203702|76a68f298-100001327642026|q_BXv8TmYg"); Assert.Equal("100001327642026", userId); }
public void TheUserIdShouldBeNullIfTheLastIsEmpty(string accessToken) { var userId = FacebookSession.ParseUserIdFromAccessToken(accessToken); Assert.Null(userId); }
public void TheResultShouldNotBeNull() { var userId = FacebookSession.ParseUserIdFromAccessToken("1249203702|2.h1MTNeLqcLqw__.86400.129394400-605430316|-WE1iH_CV-afTgyhDPc"); Assert.NotEqual(null, userId); }
public void TheUserIdShouldBeCorrectlyExtractedFromTheAccessToken() { var userId = FacebookSession.ParseUserIdFromAccessToken("1249203702|2.h1MTNeLqcLqw__.86400.129394400-605430316|-WE1iH_CV-afTgyhDPc"); Assert.Equal("605430316", userId); }