public void Build() { var result = PolicyBuilder.CreatePolicy("Policy1").AddPermission(new Permission("Permission3")).Build(); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(Policy)); Assert.AreEqual("Policy1", result.Name); Assert.AreEqual(1, result.Permissions.Count()); }