public void AppendClassEndTest() { string expected = "}" + Environment.NewLine; DotNetEmitter emitter = new DotNetEmitter(typeof(TestType1)); // Make sure the indent will be removed before appending. emitter.Indent(); emitter.AppendClassEnd(); Assert.AreEqual(expected, emitter.ToString()); }