public void TestParse_Invalid()
		{
			SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState( GetPrevious() );
			var reader = new StringReader( "e" );

			target = target.Parse( reader );
		}
		public void TestParse_tImmediatelyValie_TransitToAttributeNameParsingState()
		{
			SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState( GetPrevious() );
			var reader = new StringReader( "ServiceHost" );
			target = target.Parse( reader );
			Assert.That( target, Is.TypeOf<AttributeNameParsingState>() );
		}
		public void TestParse_IncludesWhiteSpace_StayAndFinallyTransitToAttributeNameParsingState()
		{
			SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState( GetPrevious() );
			var reader = new StringReader( "Service Host" );

			target = target.Parse( reader );
		}
        public void TestParse_Invalid()
        {
            SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState(GetPrevious());
            var reader = new StringReader("e");

            target = target.Parse(reader);
        }
        public void TestParse_IncludesWhiteSpace_StayAndFinallyTransitToAttributeNameParsingState()
        {
            SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState(GetPrevious());
            var reader = new StringReader("Service Host");

            target = target.Parse(reader);
        }
        public void TestParse_tImmediatelyValie_TransitToAttributeNameParsingState()
        {
            SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState(GetPrevious());
            var reader = new StringReader("ServiceHost");

            target = target.Parse(reader);
            Assert.That(target, Is.TypeOf <AttributeNameParsingState>());
        }
		public void TestParse_LeadingWhitespaceAndValid_StayAndFinallyTransitToAttributeNameParsingState()
		{
			SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState( GetPrevious() );
			var reader = new StringReader( " ServiceHost" );

			target = target.Parse( reader );

			Assert.That( target, Is.TypeOf<RuntimeDirectiveIndicatorFoundState>() );
	
			target = target.Parse( reader );

			Assert.That( target, Is.TypeOf<AttributeNameParsingState>() );
		}
        public void TestParse_LeadingWhitespaceAndValid_StayAndFinallyTransitToAttributeNameParsingState()
        {
            SvcDirectiveParserState target = new RuntimeDirectiveIndicatorFoundState(GetPrevious());
            var reader = new StringReader(" ServiceHost");

            target = target.Parse(reader);

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

            target = target.Parse(reader);

            Assert.That(target, Is.TypeOf <AttributeNameParsingState>());
        }
Ejemplo n.º 9
0
		public AttributeNameParsingState( RuntimeDirectiveIndicatorFoundState previous, StringBuilder buffer ) : base( previous, buffer ) { }
Ejemplo n.º 10
0
 public AttributeNameParsingState(RuntimeDirectiveIndicatorFoundState previous, StringBuilder buffer) : base(previous, buffer)
 {
 }