Esempio n. 1
0
            public void Then_the_provided_data_should_be_set_in_properties()
            {
                var committer = new Committer("John Doe", 42, "http://www.foo.com/img.png");
                
                var name = committer.Name;
                var commits = committer.Commits;
                var uri = committer.ImageUri;

                Assert.AreEqual("John Doe", name);
                Assert.AreEqual(42, commits);
                Assert.AreEqual("http://www.foo.com/img.png", uri.AbsoluteUri);
            }
		public void BindDataToCell(Committer committer, float percent)
        {
            cell.SelectionStyle = UITableViewCellSelectionStyle.None;
			
			nameLabel.Text = committer.Name;
			commitLabel.Text = committer.Commits.ToString();
			nameLabel.TextColor = StyleExtensions.lightGrayText;
			
			StyleProgressBar(percent);
			
			DisplayImage(committer.ImageUri);
        }
Esempio n. 3
0
 public void Then_assure_a_default_image_url_is_inserted_for_null_images()
 {
     var committer = new Committer("John Doe", 42, null);
     Assert.IsNotNull(committer.ImageUri);
 }