public void GetXIntercept_ValidParameters_ReturnsIntercept( double x1, double y1, double x2, double y2, double yLevel, double expectedResult) { var sw = Stopwatch.StartNew(); var xIntersect = Trigonometry.GetXIntersect(new Point { X = x1, Y = y1 }, new Point { X = x2, Y = y2 }, yLevel); Console.WriteLine(sw.Elapsed); Assert.That(xIntersect, Is.EqualTo(expectedResult)); }