示例#1
0
        public void AddWorkArtistTest_New()
        {
            Work work = Work.NewWork();

            work.WorkID = -1;
            Assert.IsTrue(work.WorkArtists.Count == 0);

            WorkArtist workArtist = WorkArtist.NewWorkArtist();

            workArtist.WorkArtistID = -1;
            Work.AddWorkArtist(work, workArtist);
            Assert.IsTrue(work.WorkArtists.Count == 1);
        }