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); }
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); }