public void EmptyAssignmentNonGeneric() { string hello = "Hello World"; Variable <string> word = new Variable <string> { Default = null }; TestAssignNG assign = new TestAssignNG(typeof(string)); TestSequence seq = new TestSequence { Variables = { word }, Activities = { assign, new TestWriteLine { MessageVariable = word, HintMessage = hello, } }, }; List <TestConstraintViolation> errors = new List <TestConstraintViolation> { new TestConstraintViolation(string.Format(ErrorStrings.RequiredArgumentValueNotSupplied, "Value"), assign.ProductActivity, false), new TestConstraintViolation(string.Format(ErrorStrings.RequiredArgumentValueNotSupplied, "To"), assign.ProductActivity, false) }; TestRuntime.ValidateWorkflowErrors(seq, errors, string.Format(ErrorStrings.RequiredArgumentValueNotSupplied, "Value")); }
public void EmptyAssignmentStandAloneNonGeneric() { TestAssignNG assign = new TestAssignNG(typeof(string)); TestRuntime.ValidateInstantiationException(assign, typeof(System.ArgumentException), string.Format(ErrorStrings.RequiredArgumentValueNotSupplied, "Value")); }