You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/framework/test/Volo.Abp.GlobalFeatures.Tests/Volo/Abp/GlobalFeatures/GlobalFeatureManager_Tests.cs

24 lines
599 B

using Shouldly;
using Xunit;
namespace Volo.Abp.GlobalFeatures
{
public class GlobalFeatureManager_Tests : GlobalFeatureTestBase
{
private readonly GlobalFeatureManager _featureManager;
public GlobalFeatureManager_Tests()
{
_featureManager = new GlobalFeatureManager();
}
[Fact]
public void Enable_Feature_By_Name()
{
_featureManager.IsEnabled("Feature1").ShouldBeFalse();
_featureManager.Enable("Feature1");
_featureManager.IsEnabled("Feature1").ShouldBeTrue();
}
}
}