Exemplo n.º 1
0
        public void FailColorInit()
        {
            FailBrush.Add("IR5V", new SolidColorBrush(Color.FromRgb(198, 3, 0)));
            FailBrush.Add("VF1", new SolidColorBrush(Color.FromRgb(249, 255, 2)));
            FailBrush.Add("VF2", new SolidColorBrush(Color.FromRgb(100, 255, 255)));
            FailBrush.Add("VF3", new SolidColorBrush(Color.FromRgb(255, 120, 0)));
            FailBrush.Add("VF1IR", new SolidColorBrush(Color.FromRgb(150, 120, 0)));
            FailBrush.Add("Full", new SolidColorBrush(Color.FromRgb(150, 200, 90)));

            FailColor.Add("IR5V", new Bgr(0, 3, 198));
            FailColor.Add("VF1", new Bgr(2, 255, 249));
            FailColor.Add("VF2", new Bgr(255, 255, 100));
            FailColor.Add("VF3", new Bgr(0, 120, 255));
            FailColor.Add("VF1IR", new Bgr(0, 120, 150));
            FailColor.Add("Full", new Bgr(90, 200, 150));
        }
Exemplo n.º 2
0
		public void SomeUnkownBrush()
		{
			var brush = new FailBrush();
			Assert.Throws<Exception>(() => brush.Convert(_converter));
		}
Exemplo n.º 3
0
        public void SomeUnkownBrush()
        {
            var brush = new FailBrush();

            Assert.Throws <Exception>(() => brush.Convert(_converter));
        }