Beispiel #1
0
        public void Init_test()
        {
            LogicController LogicMaster   = new LogicController();
            Brush           expectedColor = Brushes.Black;

            Assert.AreEqual(expectedColor, LogicMaster.CurrentFontColor);

            LogicController.NumberBaseSystem expecteSystem = LogicController.NumberBaseSystem.Decimal;
            Assert.AreEqual(expecteSystem, LogicMaster.CurrentNumberBaseSystem);

            LogicController.FontSizes expectedSize = LogicController.FontSizes.Big;
            Assert.AreEqual(expectedSize, LogicMaster.CurrentFontSize);

            string expectedEquation = "0";

            Assert.AreEqual(expectedEquation, LogicMaster.CurrentEquationState);

            LogicController.WordLengths expectedLength = LogicController.WordLengths.QWORD;
            Assert.AreEqual(expectedLength, LogicMaster.CurrentWordLength);
        }
Beispiel #2
0
 public TextInformation(string a_Content, LogicController.FontSizes a_FontSize, Brush a_Foreground)
 {
     _content    = a_Content;
     _fontSize   = (int)a_FontSize;
     _foreground = a_Foreground;
 }