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); }
protected override Parameter GetNewParameter() { var gp = new GainedParameter("??", "", 2, 1, 10, 100); gp.Initialize(); return gp; }