예제 #1
0
        internal void Activity_CallNullActivityActionTest([Frozen] ActivityOptions actParam)
        {
            var activity = new AIR.SDK.Workflow.Activity(actParam);

            //var activity = Substitute.ForPartsOf<Activity>(actParam);

            Assert.Throws <Exception>(() => ((IActivity)activity).TaskProcessor(null));
        }
예제 #2
0
        internal void Activity_CtorTest()
        {
            var name         = "SomeActivity";
            var tasklistName = "TaskList";

            var activity = new AIR.SDK.Workflow.Activity(name, tasklistName);            // { Version = "1.0" };

            Assert.True(activity.Name == name, "Activity.Name is not specified.");
            Assert.True(activity.TaskList.Name == tasklistName, "Activity.TaskList.Name is not specified.");
        }