예제 #1
0
        public void GetIntPropValues_DoesNotExist_ReturnsNegativeOne()
        {
            TsTextProps tps = CreateNonEmptyTextProps();
            int         var;
            int         value = tps.GetIntPropValues((int)FwTextPropType.ktptFontSize, out var);

            Assert.That(var, Is.EqualTo(-1));
            Assert.That(value, Is.EqualTo(-1));
        }
예제 #2
0
        public void GetIntPropValues_Exists_ReturnsCorrectValue()
        {
            TsTextProps tps = CreateNonEmptyTextProps();
            int         var;
            int         value = tps.GetIntPropValues((int)FwTextPropType.ktptWs, out var);

            Assert.That(var, Is.EqualTo((int)FwTextPropVar.ktpvDefault));
            Assert.That(value, Is.EqualTo(1));
        }