public void ParsingInvalidInterceptorDeclarations()
{
try
{
AspectParser parser = CreateParser(
"interceptors \r\n" +
"[" +
" key1 : Namespace.Interceptor in MyAssembly" +
"]");
parser.Parse();
Assert.Fail("Invalid language content");
}
catch(Exception)
{
// Excepted
}
try
{
AspectParser parser = CreateParser(
"interceptors \r\n" +
"[" +
" \"key1\" : Namespace.Interceptor in MyAssembly" +
"");
parser.Parse();
Assert.Fail("Invalid language content");
}
catch(Exception)
{
// Excepted
}
}
}