public void ClassComment() { string declaration = "class SomeClass"; IGame game = new Game(); new DislocatedComment(game, new SourceCode(""), declaration, Library.Shared, 0); ITable someClass = game.FindTableWithName("SomeClass"); Assert.IsNotNull(someClass); }
public void FieldComment() { string declaration = "field SomeClass.something"; IGame game = new Game(); new DislocatedComment(game, new SourceCode(""), declaration, Library.Shared, 0); ITable someClass = game.FindTableWithName("SomeClass"); IField something = null; if (someClass != null) { something = someClass.Fields.FirstOrDefault(); } Assert.IsNotNull(someClass); Assert.IsNotNull(something); }