コード例 #1
0
            public void MultipleCharWithColonAsArgumentTest()
            {
                var stringQuery = new StringQuery(new[] { "/aa:" });

                Assert.AreEqual(Helpers.ErrorMessage, stringQuery.ExecuteQuery());
            }
コード例 #2
0
            public void UnknownArgumentTest()
            {
                var stringQuery = new StringQuery(new[] { "/z" });

                Assert.AreEqual(Helpers.ErrorMessage, stringQuery.ExecuteQuery());
            }
コード例 #3
0
            public void PrintHelpTest()
            {
                var stringQuery = new StringQuery(new[] { "/?" });

                Assert.AreEqual(Helpers.HelpMessage, stringQuery.ExecuteQuery());
            }
コード例 #4
0
            public void NullAsArgumentTest()
            {
                var stringQuery = new StringQuery(null);

                Assert.AreEqual(Helpers.HelpMessage, stringQuery.ExecuteQuery());
            }