public void ProfileInfoShouldReturnCorrectResults(string username, string sex, string firstName, string lastName) { var service = new RemoteDataService(); var result = service.ProfileInfo(username).Result; Assert.IsNotNull(result); Assert.AreEqual(sex, result.Sex); Assert.AreEqual(firstName, result.FirstName); Assert.AreEqual(lastName, result.LastName); Assert.IsTrue(RemoteFileExists(result.ProfileAvatarUrl), "Avatar does not exist!"); }
public void ProfileInfoShouldReturnCorrectResults(string username, string sex, string firstName, string lastName) { var service = new RemoteDataService(); var result = service.ProfileInfo(username).Result; Assert.IsNotNull(result); Assert.AreEqual(sex, result.Sex); Assert.AreEqual(firstName, result.FirstName); Assert.AreEqual(lastName, result.LastName); Assert.IsTrue(RemoteFileExists(result.ProfileAvatarUrl), "Avatar does not exist!"); }
public void ProfileInfoShouldReturnNonNullResultWithNullPropertiesWhenGivenInvalidUsername(string username) { var service = new RemoteDataService(); var result = service.ProfileInfo(username).Result; Assert.IsNotNull(result); Assert.IsNull(result.Sex); Assert.IsNull(result.FirstName); Assert.IsNull(result.LastName); Assert.IsNull(result.Occupation); Assert.IsNull(result.ProfileAvatarUrl); }
public void ProfileInfoShouldReturnNonNullResultWithNullPropertiesWhenGivenInvalidUsername(string username) { var service = new RemoteDataService(); var result = service.ProfileInfo(username).Result; Assert.IsNotNull(result); Assert.IsNull(result.Sex); Assert.IsNull(result.FirstName); Assert.IsNull(result.LastName); Assert.IsNull(result.Occupation); Assert.IsNull(result.ProfileAvatarUrl); }