AjTalk.Tests.Compilers.Javascript.CompilerTests.CompileSimpleClassWithInstanceVariables C# (CSharp) Method

CompileSimpleClassWithInstanceVariables() private method

private CompileSimpleClassWithInstanceVariables ( ) : void
return void
        public void CompileSimpleClassWithInstanceVariables()
        {
            ClassModel @class = new ClassModel("AClass", (ClassModel)null, new List<string>() { "x", "y" }, new List<string>(), false, null, null);
            this.compiler.CompileClass(@class);
            this.writer.Close();
            string output = this.writer.ToString();
            Assert.IsTrue(ContainsLine(output, "function AClass()"));
            Assert.IsTrue(ContainsLine(output, "{"));
            Assert.IsTrue(ContainsLine(output, "}"));
            Assert.IsTrue(ContainsLine(output, "AClass.prototype.$x = null;"));
            Assert.IsTrue(ContainsLine(output, "AClass.prototype.$y = null;"));
        }