public void GetStepMotorParaTest() { var con = new StepMotorParasController(); var result = con.GetStepMotorPara("1").GetAwaiter().GetResult() as NotFoundResult; Assert.IsNotNull(result); }
public void GetStepMotorParasTest() { var con = new StepMotorParasController(); int expected = 0; var result = con.GetStepMotorParas(); Assert.IsNotNull(result); Assert.AreEqual(expected, result.Count()); }