public void AddLinkInfo_UnitTest() { ILinkInfo linkInfo = default(ILinkInfo); Object updatedItem = default(Object); ExecuteMethod( () => { return((IWorkItemLinkData)GetInstance()); }, instance => { linkInfo = LinkInfoImpl_UnitTests.GetInstance(); updatedItem = new Object(); AddLinkInfo_PreCondition(instance, ref linkInfo, ref updatedItem); }, instance => { instance.AddLinkInfo(linkInfo, updatedItem); }, instance => { AddLinkInfo_PostValidate(instance, linkInfo, updatedItem); }); }
public void SetLinkComment_UnitTest() { ILinkInfo linkInfo = default(ILinkInfo); String value = default(String); ExecuteMethod( () => { return((IWorkItemLinkData)GetInstance()); }, instance => { linkInfo = LinkInfoImpl_UnitTests.GetInstance(); value = default(String); //No Constructor SetLinkComment_PreCondition(instance, ref linkInfo, ref value); }, instance => { instance.SetLinkComment(linkInfo, value); }, instance => { SetLinkComment_PostValidate(instance, linkInfo, value); }); }