public void GetColor_WithNonEmptyColors_WithNonNullName_ReturnsColorFromTheList(string name)
        {
            var colors = new string[] { "Color1", "Color2", "Color3" };
            var color  = AvatarPlaceholderBuilder.GetColor(name, colors);

            Assert.Contains(color, colors);
        }
        public void GetColor_WithoutColors_WithNonNullName_ReturnsSomeColor(string name)
        {
            var color = AvatarPlaceholderBuilder.GetColor(name);

            Assert.NotNull(color);
            Assert.NotEmpty(color);
        }
 public void GetColor_WithEmptyColors_WithNonNullName_ThrowsCorrectException(string name)
 {
     Assert.Throws <ArgumentException>(()
                                       => AvatarPlaceholderBuilder.GetColor(name, new string[] { }));
 }
 public void GetColor_WithAnyColors_WithNullName_ThrowsCorrectException(string[] colors)
 {
     Assert.Throws <ArgumentNullException>(()
                                           => AvatarPlaceholderBuilder.GetColor(null, colors));
 }
 public void GetColor_WithoutColors_WithNullName_ThrowsCorrectException()
 {
     Assert.Throws <ArgumentNullException>(()
                                           => AvatarPlaceholderBuilder.GetColor(null));
 }