public void CompleteTest() { CrossJoin Item = new CrossJoin(MDXTextUtil.GetMoqMDXAxisItem(MDXTextUtil.getCountryDummyMembers())); Item.AddCrossJointTo(MDXTextUtil.GetMoqMDXAxisItem(MDXTextUtil.GetDummySalesPointMembers())); string expected = "CrossJoin (" + MDXTextUtil.getCountryDummyMembers() + ", " + MDXTextUtil.GetDummySalesPointMembers() + ")"; Assert.AreEqual(expected, Item.Build()); }
public void InitWithNull() { CrossJoin Item = new CrossJoin(null); Assert.Throws(Is.TypeOf<MDXException>() .And.Message.EqualTo(MDXTextUtil.GetMessageErrorBaseNotInit(Item)), () => Item.Build()); Item = new CrossJoin(MDXTextUtil.GetMoqMDXAxisItem()); Assert.Throws(Is.TypeOf<MDXException>() .And.Message.EqualTo(MDXTextUtil.GetMessageErrorBaseNotInit(Item)), () => Item.Build()); }