public void GeometricProgression() { GeometricProgression gp = new GeometricProgression(); gp.CommonRatio = 3; gp.InitialTerm = 2; Assert.AreEqual(gp.NTerm(5), 486); }
public void GeometricProgression() { var gp = new GeometricProgression { CommonRatio = 3, InitialTerm = 2 }; Assert.AreEqual(gp.NTerm(5), 486); }