Beispiel #1
0
        public void ItShouldPassWithValidActivity()
        {
            var project  = Helper.LoadModel();
            var activity = project.Workflows.Last().Root.Children.First().Children.ToList()[2];
            var result   = ClickImageAccuracyRule.Execute(activity, ClickImageAccuracyRule.Create());

            Assert.IsFalse(result.HasErrors);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var project  = Helper.LoadModel();
            var activity = project.Workflows.Last().Root.Children.First().Children.ToList()[2];

            var result = ClickImageAccuracyRule.Execute(activity, ClickImageAccuracyRule.Create());

            Console.WriteLine("Has Errors: {0}", result.HasErrors);
            Console.ReadKey();
        }