Init() public method

public Init ( string args ) : bool
args string
return bool
 public void Cannot_pass_arguments_to_version()
 {
     var stream = new MemoryStream();
     var cmd = new VersionCommand();
     cmd.SetContext(stream);
     cmd.Init("a");
     Assert.AreEqual("CLIENT_ERROR Version accepts no paramters\r\n", ReadAll(stream));
 }
        public void Calling_init_with_no_params_succeed()
        {
            var stream = new MemoryStream();
            var cmd = new VersionCommand();
            cmd.SetContext(stream);

            Assert.IsTrue(cmd.Init());
        }