Пример #1
0
        public void InitWithbaseItemAndOptionBySetter()
        {
            Count Item = new Count(MDXTextUtil.GetMoqMDXAxisItem());
            Item.Options = Count.Key.EXCLUDEEMPTY;

            Assert.AreEqual("Count (" + MDXTextUtil.GetDummyMember() + ", " + Count.Key.EXCLUDEEMPTY.ToString() + ")", Item.Build());
        }
Пример #2
0
        public void InitWithNull()
        {
            Count Item = new Count(null);

            Assert.Throws(Is.TypeOf<MDXException>()
                            .And.Message.EqualTo(MDXTextUtil.GetMessageErrorBaseNotInit(Item)),
                            () => Item.Build());
        }
Пример #3
0
        public void InitWithBaseItem()
        {
            Count Item = new Count(MDXTextUtil.GetMoqMDXAxisItem());

            Assert.AreEqual("Count (" + MDXTextUtil.GetDummyMember() + ")", Item.Build());
        }