Пример #1
0
 public void Interpolate1dAverage_Facts()
 {
     Assert.Equal("1d interpolator blah not found in cache", InterpolatorFunctions.Interpolate1dAverage("blah", new[] { 0.0 }));
     InterpolatorFunctions.Create1dInterpolator("pwah", new[] { 1.0 }, new[] { 1.0 }, "Linear");
     Assert.Equal(1.0, InterpolatorFunctions.Interpolate1dAverage("pwah", new[] { 0.0 }));
 }
Пример #2
0
 public void Create1dInterpolator_Facts()
 {
     Assert.Equal("Could not parse 1d interpolator type - blah", InterpolatorFunctions.Create1dInterpolator("pwah", new[] { 1.0 }, new[] { 1.0 }, "blah"));
     Assert.Equal("pwah¬0", InterpolatorFunctions.Create1dInterpolator("pwah", new[] { 1.0 }, new[] { 1.0 }, "Linear"));
 }