using Rainbow.Entity;
using Xunit;
namespace XUnitTest.Rainbow.Entity;
public class DeviceTests
{
[Fact(DisplayName = "Device_Insert")]
public void Insert()
{
var d = new Device { Mac = "AA:BB:" + DateTime.Now.Millisecond.ToString("X4"), IP = "192.168.1.1", HostName = "test", Name = "测试", Enable = true };
Assert.True(d.Insert() > 0);
}
}
|