BootstrapAdmin/Bootstrap.DataAccessTests/TerminalHelperTests.cs

18 lines
754 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Linq;
namespace Bootstrap.DataAccess.Tests
{
[TestClass()]
public class MenuTests
{
[TestMethod()]
public void RetrieveMenusTest()
{
var result = TerminalHelper.RetrieveTerminals("1");
Assert.IsTrue((result.Count() == 0 || result.Count() == 1), "带有参数的TerminalHelper.RetrieveTerminals方法调用失败请检查数据库连接或者数据库SQL语句");
result = TerminalHelper.RetrieveTerminals();
Assert.IsTrue(result.Count() >= 0, "不带参数的TerminalHelper.RetrieveTerminals方法调用失败请检查数据库连接或者数据库SQL语句");
}
}
}