public void GetMinimumTest() { var fieldIndexes = new List <int> { 1, 2, 13, 14, 26, 9, 10 }; string expected = "people/{id}:(first-name,last-name,last-modified-timestamp,location,industry)?format=json"; string actual = ProfileUrl.Get(fieldIndexes); Assert.AreEqual(expected, actual); }
public void GetMaximum1Test() { string prefix = "people/{id}:"; string postfix = "format=json"; var fieldIndexes = new List <int> { 1, 2, 13, 14, 26, 9, 10, 38 }; string expected = string.Empty; string actual = ProfileUrl.Get(prefix, postfix, fieldIndexes, Permissions.none); Assert.AreEqual(expected, actual); }
public void GetMaximum2Test() { string prefix = "people/{id}:"; string postfix = "format=json"; var fieldIndexes = new List <int> { 1, 2, 13, 14, 26, 9, 10, 38 }; string expected = "people/{id}:(first-name,last-name,location,industry)?format=json"; string actual = ProfileUrl.Get(prefix, postfix, fieldIndexes, Permissions.r_basicprofile); Assert.AreEqual(expected, actual); }
public void GetMaximum0Test() { string prefix = "people/{id}:"; string postfix = string.Empty; var fieldIndexes = new List <int> { 1, 2, 13, 14, 26, 9, 10, 38 }; string expected = "people/{id}:(first-name,last-name,last-modified-timestamp,location,industry,three-current-positions)"; string actual = ProfileUrl.Get(prefix, postfix, fieldIndexes, Permissions.all); Assert.AreEqual(expected, actual); }