public void ApplyTest1(double vol) { GwPWSCommdUnit cmdUnit = new GwPWSCommdUnit(); var str = cmdUnit.Apply(vol); Assert.AreEqual($"appl {vol}\n", str); }
public void ApplyTest(double vol, double cur) { GwPWSCommdUnit cmdUnit = new GwPWSCommdUnit(); var str = cmdUnit.Apply(vol, cur); Assert.AreEqual($"appl {vol},{cur}\n", str); }
public void ApplyTest3(double vol, double cur) { GwPWSCommdUnit cmdUnit = new GwPWSCommdUnit(); Assert.ThrowsException <ArgumentOutOfRangeException>(() => cmdUnit.Apply(vol, cur)); }