public void TestParse_LeadingWhitespaceAndPercentImmediately_StayAndFinallyTransitToServerDirectiveIndicatorFoundState()
        {
            SvcDirectiveParserState target = new StartTagFoundState(new InitialState());
            var reader = new StringReader(" %");

            target = target.Parse(reader);

            Assert.That(target, Is.TypeOf <StartTagFoundState>());

            target = target.Parse(reader);
            Assert.That(target, Is.TypeOf <ServerDirectiveIndicatorFoundState>());
        }
Exemplo n.º 2
0
		public void TestParse_LeadingWhitespaceAndPercentImmediately_StayAndFinallyTransitToServerDirectiveIndicatorFoundState()
		{
			SvcDirectiveParserState target = new StartTagFoundState( new InitialState() );
			var reader = new StringReader( " %" );

			target = target.Parse( reader );

			Assert.That( target, Is.TypeOf<StartTagFoundState>() );

			target = target.Parse( reader );
			Assert.That( target, Is.TypeOf<ServerDirectiveIndicatorFoundState>() );
		}
        public void TestParse_NotAPercentChar()
        {
            SvcDirectiveParserState target = new StartTagFoundState(new InitialState());
            var reader = new StringReader("@");

            target = target.Parse(reader);
        }
Exemplo n.º 4
0
		public void TestParse_NotAPercentChar()
		{
			SvcDirectiveParserState target = new StartTagFoundState( new InitialState() );
			var reader = new StringReader( "@" );

			target = target.Parse( reader );
		}