private void GoToLog(object sender, RoutedEventArgs e) { Window logs_window = new Logarithms(); this.Hide(); logs_window.Show(); }
public void CalculateTest( double first, double second, double expected) { var calculator = new Logarithms(); var actualResult = calculator.Calculate(first, second); Assert.AreEqual(expected, actualResult, 0.001); }
static public double Log(double antilog, double bbase) { return(Logarithms.Logarithm(antilog, bbase)); }
public void WrongAnswer() { var calculator = new Logarithms(); Assert.Throws <Exception>(code: () => calculator.Calculate(0, 1)); }