Example #1
0
        public void WriteOptions_WithNoParametersSpecified_DisplaysAll()
        {
            subject.WriteOptions(writer);

            var output = writer.ToString();

            Assert.Contains("-t", output);
            Assert.Contains("--template=", output);
            Assert.Contains("--port=", output);
            Assert.Contains("-i", output);
            Assert.Contains("--import=", output);
            Assert.Contains("-f", output);
            Assert.Contains("--file=", output);
            Assert.Contains("--cleantarget", output);
            Assert.Contains("--destination", output);
        }
Example #2
0
        public void WriteOptions_WithNoParametersSpecified_DisplaysAll()
        {
            subject.WriteOptions(writer);

            var output = writer.ToString();

            Assert.True(output.Contains("-t"));
            Assert.True(output.Contains("--template="));
            Assert.True(output.Contains("-d"));
            Assert.True(output.Contains("--directory="));
            Assert.True(output.Contains("-p"));
            Assert.True(output.Contains("--port="));
            Assert.True(output.Contains("-i"));
            Assert.True(output.Contains("--import="));
            Assert.True(output.Contains("-f"));
            Assert.True(output.Contains("--file="));
        }
Example #3
0
 public void WriteHelp(TextWriter writer)
 {
     parameters.WriteOptions(writer, "-t", "-d", "-p", "--nobrowser");
 }
Example #4
0
 public void WriteHelp(TextWriter writer)
 {
     parameters.WriteOptions(writer, "-t", "-d", "withproject", "wiki");
 }
Example #5
0
 public void WriteHelp(TextWriter writer)
 {
     writer.Write("   Create a new post\r\n");
     parameters.WriteOptions(writer, "newposttitle", "drafts", "-s");
 }
Example #6
0
 public void WriteHelp(TextWriter writer)
 {
     parameters.WriteOptions(writer, "-t", "-p", "-d", "-cleantarget");
 }
Example #7
0
 public void WriteHelp(TextWriter writer)
 {
     parameters.WriteOptions(writer, "-t", "-d", "-p", "--nobrowser", "-cleantarget", "-s", "-destination");
 }
Example #8
0
 public void WriteHelp(TextWriter writer)
 {
     parameters.WriteOptions(writer, "-t", "-d");
 }