public void full_test_with_concrete_entityframework_class_and_usings() { // Arrange IORMFramework orm = new EntityFrameworkWrapperORMFramework(_context); // Act orm.Generate(); StringBuilder expected = new StringBuilder(); expected.AppendLine("using System;"); expected.AppendLine("using System.Collections.Generic;"); expected.AppendLine("using System.Data;"); expected.AppendLine("using System.Linq;"); expected.AppendLine(""); expected.AppendLine("using BlogApp.DataObjects.Interfaces;"); expected.AppendLine("using BlogApp.DataObjects.EntityFramework.EntityMapper;"); expected.AppendLine("namespace BlogApp.DataObjects.EntityFramework.SQLServer"); expected.AppendLine("{"); expected.AppendLine("\tpublic class BlogBaseDao : ICRUDDao<BlogApp.BusinessObjects.Blog>"); expected.AppendLine("\t{"); expected.AppendLine("\t"); expected.AppendLine("\t}"); expected.AppendLine("}"); expected.AppendLine("using System;"); expected.AppendLine("using System.Collections.Generic;"); expected.AppendLine("using System.Linq;"); expected.AppendLine("using System.Linq.Dynamic;"); expected.AppendLine("using BlogApp.DataObjects.Interfaces;"); expected.AppendLine("using BlogApp.DataObjects.EntityFramework.EntityMapper;"); expected.AppendLine("namespace BlogApp.DataObjects.EntityFramework.SQLServer"); expected.AppendLine("{"); expected.AppendLine("\tpublic class SQLServerBlogDao : BlogBaseDao, IBlogDao"); expected.AppendLine("\t{"); expected.AppendLine("\t"); expected.AppendLine("\t}"); expected.AppendLine("}"); expected.AppendLine("using System;"); expected.AppendLine("using System.Collections.Generic;"); expected.AppendLine("using System.Linq;"); expected.AppendLine("namespace BlogApp.DataObjects.Interfaces"); expected.AppendLine("{"); expected.AppendLine("\tpublic interface IBlogDao : ICRUDDao<BlogApp.BusinessObjects.Blog>"); expected.AppendLine("\t{"); expected.AppendLine("\t"); expected.AppendLine("\t}"); expected.AppendLine("}"); // Assert Assert.AreEqual(expected.ToString(), _output.text); }