public void FlowNodeExpressionExpectedIsCSharpValue() { // BUG 9304 - 2013.05.08 - TWR - designer/runtime error can be removed by converting the underlying expression to a CSharpValue var flowNode = new TestFlowNodeActivity <string>(); var expected = typeof(CSharpValue <string>); var actual = flowNode.GetTheExpression().GetType(); Assert.AreEqual(expected, actual); }
public void DsfFlowNodeActivity_UnitTest_IActivityTemplateFactoryCreate_ReturnsThis() { var expected = new TestFlowNodeActivity <string>(); var atf = expected as IActivityTemplateFactory; Assert.IsNotNull(atf, "DsfFlowNodeActivity does not implement interface IActivityTemplateFactory."); var actual = expected.Create(null); Assert.AreSame(expected, actual, "DsfFlowNodeActivity Create did not return itself."); }