private testEnum ( string s, string symbols ) : void | ||
s | string | |
symbols | string | |
return | void |
public void testEnum(string s, string[] symbols)
{
Schema sc = Schema.Parse(s);
Assert.AreEqual(Schema.Type.ENUM, sc.type);
EnumSchema es = sc as EnumSchema;
Assert.AreEqual(symbols.Length, es.symbols.Count);
int i = 0;
foreach (String str in es.symbols)
{
Assert.AreEqual(symbols[i++], str);
}
}