Init() public method

public Init ( string args ) : bool
args string
return bool
コード例 #1
0
 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));
 }
コード例 #2
0
        public void Calling_init_with_no_params_succeed()
        {
            var stream = new MemoryStream();
            var cmd = new VersionCommand();
            cmd.SetContext(stream);

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