public void TwoColorsInString()
 {
     int[] colors = SharpDevelopColorDialog.CustomColorsFromString("20|30");
     Assert.AreEqual(2, colors.Length);
     Assert.AreEqual(20, colors[0]);
     Assert.AreEqual(30, colors[1]);
 }
 public void FirstColorIsInvalid()
 {
     int[] colors = SharpDevelopColorDialog.CustomColorsFromString("Test|20");
     Assert.AreEqual(1, colors.Length);
     Assert.AreEqual(20, colors[0]);
 }
 public void EmptyString()
 {
     Assert.IsNull(SharpDevelopColorDialog.CustomColorsFromString(String.Empty));
 }
 public void OneColorInString()
 {
     int[] colors = SharpDevelopColorDialog.CustomColorsFromString("34");
     Assert.AreEqual(1, colors.Length);
     Assert.AreEqual(34, colors[0]);
 }
 public void NullString()
 {
     Assert.IsNull(SharpDevelopColorDialog.CustomColorsFromString(null));
 }