public void GetFieldValueExternal_UnitTest()
        {
            IFieldDefinition fd       = default(IFieldDefinition);
            Int32            revision = default(Int32);

            ExecuteMethod(
                () => { return((IWorkItem)GetInstance()); },
                instance =>
            {
                fd       = FieldDefinitionWrapper_UnitTests.GetInstance();
                revision = default(Int32);     //No Constructor
                GetFieldValueExternal_PreCondition(instance, ref fd, ref revision);
            },
                instance => { instance.GetFieldValueExternal(fd, revision); },
                instance => { GetFieldValueExternal_PostValidate(instance, fd, revision); });
        }
Ejemplo n.º 2
0
        public void Insert_UnitTest()
        {
            Int32            index = default(Int32);
            IFieldDefinition value = default(IFieldDefinition);

            ExecuteMethod(
                () => { return((IDisplayFieldList)GetInstance()); },
                instance =>
            {
                index = default(Int32);     //No Constructor
                value = FieldDefinitionWrapper_UnitTests.GetInstance();
                Insert_PreCondition(instance, ref index, ref value);
            },
                instance => { instance.Insert(index, value); },
                instance => { Insert_PostValidate(instance, index, value); });
        }