Пример #1
0
        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);
        }
Пример #2
0
        public void RoleAdminController_Template_NullParameter_Test()
        {
            var template = new RoleAdminController(null);

            Assert.Throws <NullReferenceException>(() => template.TransformText());
        }