Exemplo n.º 1
0
 public void TestSettingValues(double data)
 {
     var constant = new Constant { ConstantValue = data };
     Assert.Equal(data, constant.GetValue(0, 0, 0));
     constant.ConstantValue += data;
     Assert.Equal(data * 2, constant.GetValue(0, 0, 0));
 }
Exemplo n.º 2
0
        public void AbsTest(double data)
        {
            var source = new Constant { ConstantValue = data };
            var module = new Abs { Source0 = source };

            Assert.Equal(Math.Abs(source.GetValue(0, 0, 0)), module.GetValue(0, 0, 0));
        }
Exemplo n.º 3
0
 public void TestValues(double data)
 {
     var constant = new Constant { ConstantValue = data };
     Assert.Equal(data, constant.ConstantValue);
     Assert.Equal(data, constant.GetValue(0, 0, 0));
 }