1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2025-04-09 19:15:41 +02:00

Add fail tests for Java Parser

This commit is contained in:
chylex 2015-09-09 17:44:54 +02:00
parent 4a876fd372
commit 6ae0da65c1

View File

@ -36,6 +36,14 @@ namespace CodeStatistics.Tests{
kvp = JavaParseUtils.GetType("public @interface MyAnnotation {");
Assert.AreEqual(JavaType.Annotation,kvp.Key);
Assert.AreEqual("MyAnnotation",kvp.Value);
kvp = JavaParseUtils.GetType("class.invalid");
Assert.AreEqual(JavaType.Invalid,kvp.Key);
Assert.AreEqual(null,kvp.Value);
kvp = JavaParseUtils.GetType("fail");
Assert.AreEqual(JavaType.Invalid,kvp.Key);
Assert.AreEqual(null,kvp.Value);
}
}
}