Beispiel #1
0
        public void HasFeatureTest()
        {
            var ki = new LicenseKey()
            {
                Expires = DateTime.Today.AddDays(3),
                F1      = true,
                F2      = false,
                F5      = true
            };

            bool result = ki.HasFeature(1)
                          .HasNotFeature(2)
                          .HasFeature(5)
                          .HasNotExpired()
                          .IsValid();

            Assert.IsTrue(result);
        }