Example #1
0
        public override void コンストラクタのテスト()
        {
            Assert.Throws<ArgumentException>(() => new GainedParameter("??", "", 2, 1, 10, 0));
            Assert.Throws<ArgumentException>(() => new GainedParameter("??", "", 2, 1, 10, -1));

            var gp = new GainedParameter("??", "", 2, 1, 10, 100);
            Assert.AreEqual(100, gp.Gain);
        }
Example #2
0
 protected override Parameter GetNewParameter()
 {
     var gp = new GainedParameter("??", "", 2, 1, 10, 100);
     gp.Initialize();
     return gp;
 }