public void AllowsToChangeHeight() { TriangularFunction func = new TriangularFunction(0.0, 4.0, 0.5); Assert.AreEqual(func.GetHeight(), 0.5); }
public void HeightDefaultsTo1() { TriangularFunction func = new TriangularFunction(0.0, 4.0); Assert.AreEqual(func.GetHeight(), 1.0); }