예제 #1
0
        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);
        }
예제 #2
0
        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);
        }