Exemplo n.º 1
0
        public void ParseCommand_ValidCommand1_Successful()
        {
            var command = new GraphicBoxCommand();

            command.ParseCommand("^GB10,10");
            Assert.AreEqual(10, command.BoxWidth);
            Assert.AreEqual(10, command.BoxHeight);
        }
Exemplo n.º 2
0
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new GraphicBoxCommand();

            command.ParseCommand("^GB10,10,2,W,1");
            Assert.AreEqual(10, command.BoxWidth);
            Assert.AreEqual(10, command.BoxHeight);
            Assert.AreEqual(2, command.BorderThickness);
            Assert.AreEqual(LineColor.White, command.LineColor);
            Assert.AreEqual(1, command.DegreeOfCornerrounding);
        }