예제 #1
0
        private static TsTextProps EditStrProperty(TsTextProps textProps, int tpt, string strVal)
        {
            ITsPropsBldr tpb = textProps.GetBldr();

            tpb.SetStrPropValue(tpt, strVal);
            return((TsTextProps)tpb.GetTextProps());
        }
예제 #2
0
        private static TsTextProps EditIntProperty(TsTextProps textProps, int tpt, int nVar, int nVal)
        {
            ITsPropsBldr tpb = textProps.GetBldr();

            tpb.SetIntPropValues(tpt, nVar, nVal);
            return((TsTextProps)tpb.GetTextProps());
        }
예제 #3
0
        public void GetBldr_NonEmpty_ReturnsBldrWithCorrectData()
        {
            TsTextProps tps = CreateNonEmptyTextProps();

            Assert.That(tps.GetBldr().GetTextProps(), Is.EqualTo(tps));
        }
예제 #4
0
        public void GetBldr_Empty_ReturnsBldrWithCorrectData()
        {
            TsTextProps tps = TsTextProps.EmptyProps;

            Assert.That(tps.GetBldr().GetTextProps(), Is.EqualTo(tps));
        }