public void ArrayRepresentativeTest()
{
Console.WriteLine("Starting Luma( Color Array) Test");
var colors = new Bgra[4];
colors[0] = new Bgra(0, 0, 100, 0);
colors[1] = new Bgra(0, 0, 90, 0);
colors[2] = new Bgra(0, 0, 100, 0);
colors[3] = new Bgra(0, 0, 100, 0);
var expected = Luminousity.Luma(new Bgra(0, 0, (40 + 27 + 20 + 10), 0));
var actual = Luminousity.RepresentativeLuma(colors, Luminousity.LinearWeighting(colors.Length));
Assert.IsTrue(Math.Abs(actual - expected) < 0.01);
Console.WriteLine("Representative of Array Luma Test Successful");
}