public void RoleAdminController_Template_Test() { var template = new RoleAdminController(new SmartAppInfo { Id = ApplicationId }); var output = template.TransformText(); Assert.NotNull(output); Assert.NotEmpty(output); Assert.Contains($"namespace {ApplicationId}.Backend.Controllers", output); Assert.Contains("public partial class RoleAdminController : Controller", output); }
public void RoleAdminController_Template_NullParameter_Test() { var template = new RoleAdminController(null); Assert.Throws <NullReferenceException>(() => template.TransformText()); }