public GetModuleMetadata ( ) : Kentico.KInspector.Core.ModuleMetadata | ||
return | Kentico.KInspector.Core.ModuleMetadata |
public void Should_PopulateComments_When_ReturningModuleMetadata() { // arrange... PasswordPolicyModule mod = new PasswordPolicyModule(); // act... var meta = mod.GetModuleMetadata(); // assert... Assert.IsFalse(string.IsNullOrEmpty(meta.Comment)); }
public void Should_BeInSecurityCategory_When_ReturningModuleMetadata() { // arrange... PasswordPolicyModule mod = new PasswordPolicyModule(); // act... var meta = mod.GetModuleMetadata(); // assert... Assert.IsTrue(meta.Category.Equals("Security")); }
public void Should_HaveCorrectSupportedVersions_When_ReturningModuleMetadata() { // arrange... List<Version> expectedVersions = new List<Version>() { new Version("7.0"), new Version("8.0"), new Version("8.1"), new Version("8.2"), new Version("9.0") }; PasswordPolicyModule mod = new PasswordPolicyModule(); // act... var meta = mod.GetModuleMetadata(); // assert... Assert.IsTrue((meta.SupportedVersions.Except(expectedVersions).ToList()).Count.Equals(0)); }