public void CanGetAttributes() { Dictionary <string, string> expectedResult = new Dictionary <string, string>() { { "first_name", "Test" }, { "last_name", "holder" } }; var attributesJson = "{\n \"first_name\" : {\n \"raw\" : \"Test\",\n \"encoded\" : \"123456789\"\n },\n \"last_name\" : {\n \"raw\" : \"holder\",\n \"encoded\" : \"123456789\"\n }\n}"; var attributeValues = CredentialUtils.GetAttributes(attributesJson); Assert.Equal(expectedResult, attributeValues); }