示例#1
0
        private void GoToLog(object sender, RoutedEventArgs e)
        {
            Window logs_window = new Logarithms();

            this.Hide();
            logs_window.Show();
        }
示例#2
0
        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);
        }
示例#3
0
 static public double Log(double antilog, double bbase)
 {
     return(Logarithms.Logarithm(antilog, bbase));
 }
示例#4
0
        public void WrongAnswer()
        {
            var calculator = new Logarithms();

            Assert.Throws <Exception>(code: () => calculator.Calculate(0, 1));
        }