public void Roles_successfully_returns_a_V2CharacterRoles() { int characterId = 88823; CharacterScopes scopes = CharacterScopes.esi_characters_read_corporation_roles_v1; SsoToken inputToken = new SsoToken { AccessToken = "This is a old access token", RefreshToken = "This is a old refresh token", CharacterId = characterId, CharacterScopesFlags = scopes }; LatestCharacterEndpoints internalLatestCharacter = new LatestCharacterEndpoints(string.Empty, true); V2CharacterRoles getCharactersRoles = internalLatestCharacter.Roles(inputToken); Assert.Equal(2, getCharactersRoles.Roles.Count); Assert.Equal(CharacterRoles.Director, getCharactersRoles.Roles[0]); Assert.Equal(CharacterRoles.StationManager, getCharactersRoles.Roles[1]); Assert.Equal(0, getCharactersRoles.RolesAtHq.Count); Assert.Equal(0, getCharactersRoles.RolesAtBase.Count); Assert.Equal(0, getCharactersRoles.RolesAtOther.Count); }