static IDSelector Consume_ID_Selector(DataConsumer <CssToken> Stream) { HashToken Hash = (Stream.Consume() as HashToken); if (Hash.HashType != EHashTokenType.ID) { throw new CssParserException("Invalid Hash token, hash-type is not ID!"); } return(new IDSelector(Hash.Value)); }
public void EncodeTest(EHashTokenType Type, string Value) { string Actual = new HashToken(Type, Value).Encode(); Assert.Equal(Value, Actual); }