public void succeeded_expectation_advances()
        {
            var testObject = new QueryTokenizer();

            testObject.Start("blah#foo");

            testObject.Expect(QueryTokens.Name);

            Assert.Equal(QueryTokens.UniqueID, testObject.Token);
        }
        public void failed_expectation_throws_exception()
        {
            var testObject = new QueryTokenizer();

            testObject.Start("blah");

            Assert.Throws <ApplicationException>(() => testObject.Expect(QueryTokens.UniqueID));

            Assert.True(testObject.AtEnd);
        }