public void TestConversionRate(double treated, double converted, double rate, double score) { var model = new ConfidenceRow() { Visitors = treated, Conversions = converted }; Assert.That(model.Rate, Is.EqualTo(rate).Within(0.01)); }
public void AddTest(double visited, double converted) { var row = new ConfidenceRow() { Visitors = visited, Conversions = converted, ZScore = CalculateZscore(visited,converted), Confidence = CalculateConfidence(CalculateZscore(visited, converted)) }; Tests.Add(row); }