Exemplo n.º 1
0
        public void when_ToString_is_called_with_one_option_specified_then_output_is_formatted_correctly()
        {
            var no = new NmapOptions();

            no.Add(NmapFlag.A, "A");
            Assert.AreEqual("-A A", no.ToString());
        }
Exemplo n.º 2
0
        public void when_ToString_is_called_with_multiple_options_specified_then_output_is_formatted_correctly()
        {
            var no = new NmapOptions();

            no.Add(NmapFlag.A, "A");
            no.Add(NmapFlag.SourcePortG, "B");

            Assert.AreEqual("-A A -g B", no.ToString());
        }
Exemplo n.º 3
0
 public void when_ToString_is_called_with_one_option_specified_then_output_is_formatted_correctly()
 {
     var no = new NmapOptions();
     no.Add(NmapFlag.A, "A");
     Assert.AreEqual("-A A", no.ToString());
 }
Exemplo n.º 4
0
        public void when_ToString_is_called_with_multiple_options_specified_then_output_is_formatted_correctly()
        {
            var no = new NmapOptions();
            no.Add(NmapFlag.A, "A");
            no.Add(NmapFlag.SourcePortG, "B");

            Assert.AreEqual("-A A -g B", no.ToString());
        }