예제 #1
0
        public void ApplyTest1(double vol)
        {
            GwPWSCommdUnit cmdUnit = new GwPWSCommdUnit();
            var            str     = cmdUnit.Apply(vol);

            Assert.AreEqual($"appl {vol}\n", str);
        }
예제 #2
0
        public void ApplyTest(double vol, double cur)
        {
            GwPWSCommdUnit cmdUnit = new GwPWSCommdUnit();

            var str = cmdUnit.Apply(vol, cur);

            Assert.AreEqual($"appl {vol},{cur}\n", str);
        }
예제 #3
0
        public void ApplyTest3(double vol, double cur)
        {
            GwPWSCommdUnit cmdUnit = new GwPWSCommdUnit();

            Assert.ThrowsException <ArgumentOutOfRangeException>(() => cmdUnit.Apply(vol, cur));
        }