public void GeometricProgression()
        {
            GeometricProgression gp = new GeometricProgression();

            gp.CommonRatio = 3;
            gp.InitialTerm = 2;

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