public void UnitTestForumPolicyInvalidPolicy()
 {
     Assert.IsTrue(ForumPolicy.create(10, 11, 10, 1, postDeletionPermission.WRITER, 365, 0, modUnassignmentPermission.ADMIN) == null);
     Assert.IsTrue(ForumPolicy.create(10, 1, 10, 11, postDeletionPermission.WRITER, 365, 0, modUnassignmentPermission.ADMIN) == null);
     Assert.IsTrue(ForumPolicy.create(0, -1, 10, 1, postDeletionPermission.WRITER, 365, 0, modUnassignmentPermission.ADMIN) == null);
     Assert.IsTrue(ForumPolicy.create(10, 1, 0, -1, postDeletionPermission.WRITER, 365, 0, modUnassignmentPermission.ADMIN) == null);
     Assert.IsTrue(ForumPolicy.create(10, 1, 10, 1, postDeletionPermission.WRITER, 0, 0, modUnassignmentPermission.ADMIN) == null);
     Assert.IsTrue(ForumPolicy.create(10, 1, 10, 1, postDeletionPermission.WRITER, 365, -5, modUnassignmentPermission.ADMIN) == null);
     Assert.IsTrue(ForumPolicy.create(10, 1, 10, 1, postDeletionPermission.INVALID, 365, 0, modUnassignmentPermission.ADMIN) == null);
     Assert.IsTrue(ForumPolicy.create(10, 1, 10, 1, postDeletionPermission.WRITER, 365, 0, modUnassignmentPermission.INVALID) == null);
 }
 public void UnitTestForumPolicyCreate()
 {
     Assert.IsTrue(ForumPolicy.create(10, 1, 10, 1, postDeletionPermission.WRITER, 365, 0, modUnassignmentPermission.ADMIN) != null);
 }