test: 移除冗余代码

This commit is contained in:
Argo-PD 2020-03-18 19:42:32 +08:00
parent 1cae5ea56d
commit a3c07e0392
1 changed files with 0 additions and 2 deletions

View File

@ -1,5 +1,4 @@
using Bootstrap.Security;
using Longbow.Cache;
using Longbow.Web;
using System.Linq;
using Xunit;
@ -25,7 +24,6 @@ namespace Bootstrap.DataAccess
menu.Name = "UnitTest";
Assert.True(MenuHelper.Save(menu));
CacheManager.Clear(MenuHelper.RetrieveMenusAll + "*");
var menu2 = MenuHelper.RetrieveMenus("Admin").FirstOrDefault(m => m.Id == menu.Id);
Assert.Equal(name, menu2.Name);
}