public void ParseCommand_ValidCommand4_Successful() { var command = new RecallGraphicCommand(); command.ParseCommand("^XGR:IMAGE.GRF,3,3"); Assert.AreEqual("R:", command.StorageDevice); Assert.AreEqual("IMAGE.GRF", command.ImageName); Assert.AreEqual(3, command.MagnificationFactorX); Assert.AreEqual(3, command.MagnificationFactorY); }
public void ParseCommand_ValidCommand1_Successful() { var command = new RecallGraphicCommand(); command.ParseCommand("^XGR:TEST.PNG"); Assert.AreEqual("R:", command.StorageDevice); Assert.AreEqual("TEST.PNG", command.ImageName); Assert.AreEqual(1, command.MagnificationFactorX); Assert.AreEqual(1, command.MagnificationFactorY); }