public void TestInvalidColorReturnsTransparent(string str)
 {
     var converter = new StringToColorConverter();
     var result = converter.Convert(str, typeof(SolidColorBrush), null, CultureInfo.CurrentCulture) as SolidColorBrush;
     Assert.That( result, Is.Not.Null );
     Assert.That( result.Color.A, Is.EqualTo( 0x00 ) );
 }
 public void TestColorConversion(string str, byte r, byte g, byte b)
 {
     var converter = new StringToColorConverter();
     var result = converter.Convert(str, typeof(SolidColorBrush), null, CultureInfo.CurrentCulture) as SolidColorBrush;
     Assert.That(result, Is.Not.Null);
     Assert.That(result.Color.A, Is.EqualTo(0xFF));
     Assert.That(result.Color.R, Is.EqualTo(r));
     Assert.That(result.Color.G, Is.EqualTo(g));
     Assert.That(result.Color.B, Is.EqualTo(b));
 }