public void ParseCommand_InvalidCommand1_Successful()
        {
            var command = new DownloadObjectsCommand();

            command.ParseCommand("~DYR:IMAGE2.PNG,P,P,4,2");
            Assert.AreEqual("R:", command.StorageDevice);
            Assert.AreEqual("IMAGE2.PNG", command.FileName);
            Assert.AreEqual('P', command.FormatDownloadedInDataField);
            Assert.AreEqual("P", command.ExtensionOfStoredFile);
            Assert.AreEqual(4, command.TotalNumberOfBytesInFile);
            Assert.AreEqual(2, command.TotalNumberOfBytesPerRow);
            Assert.AreEqual(null, command.Data);
        }
        public void ParseCommand_InvalidCommand2_Successful()
        {
            var command = new DownloadObjectsCommand();

            command.ParseCommand("~DYR:");
            Assert.AreEqual("R:", command.StorageDevice);
            Assert.AreEqual("UNKNOWN", command.FileName);
            Assert.AreEqual(char.MinValue, command.FormatDownloadedInDataField);
            Assert.AreEqual(null, command.ExtensionOfStoredFile);
            Assert.AreEqual(0, command.TotalNumberOfBytesInFile);
            Assert.AreEqual(0, command.TotalNumberOfBytesPerRow);
            Assert.AreEqual(null, command.Data);
        }
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new DownloadObjectsCommand();

            command.ParseCommand("~DYR:,P,P,4,2,ABCDEF00");
            Assert.AreEqual("R:", command.StorageDevice);
            Assert.AreEqual("UNKNOWN", command.FileName);
            Assert.AreEqual('P', command.FormatDownloadedInDataField);
            Assert.AreEqual("P", command.ExtensionOfStoredFile);
            Assert.AreEqual(4, command.TotalNumberOfBytesInFile);
            Assert.AreEqual(2, command.TotalNumberOfBytesPerRow);
            Assert.AreEqual("ABCDEF00", command.Data);
        }