Esempio n. 1
0
        public void GetStrProp_ValidIndex_ReturnsCorrectValue()
        {
            TsTextProps tps = CreateNonEmptyTextProps();
            int         tpt;
            string      value = tps.GetStrProp(0, out tpt);

            Assert.That(tpt, Is.EqualTo((int)FwTextPropType.ktptFontFamily));
            Assert.That(value, Is.EqualTo("Arial"));

            value = tps.GetStrProp(1, out tpt);
            Assert.That(tpt, Is.EqualTo((int)FwTextPropType.ktptFieldName));
            Assert.That(value, Is.EqualTo("Field"));
        }
Esempio n. 2
0
        public void GetStrProp_IndexOutOfRange_Throws()
        {
            TsTextProps tps = TsTextProps.EmptyProps;
            int         tpt;

            Assert.That(() => tps.GetStrProp(0, out tpt), Throws.InstanceOf <ArgumentOutOfRangeException>());
        }