コード例 #1
0
        public void ValidScene(string color)
        {
            var scene = new SolidColor(new LedSettings());

            scene.Color = (Color) new ColorConverter().ConvertFromString(color);
            var script = scene.GenerateScript();
            var result = LightCommandAnalyzer.AnalyzeScript(script);

            Assert.Equal(0, result.ErrorCount);
        }