예제 #1
0
        public void ParseCommand_ValidCommand1_Successful()
        {
            var command = new GraphicCircleCommand();

            command.ParseCommand("^GC10,5");
            Assert.AreEqual(10, command.CircleDiameter);
            Assert.AreEqual(5, command.BorderThickness);
        }
예제 #2
0
        public void ParseCommand_ValidCommand3_Successful()
        {
            var command = new GraphicCircleCommand();

            command.ParseCommand("^GC,,W");
            Assert.AreEqual(3, command.CircleDiameter);
            Assert.AreEqual(1, command.BorderThickness);
            Assert.AreEqual(LineColor.White, command.LineColor);
        }