public double MemTest(double x)
        {
            var calc = new TestCalc.Lib.Calculator();

            calc.AddMem(x);
            return(calc.ShowMem());
        }
        public void SumTest()
        {
            var mock = new Mock <Lib.ILogger>();

            mock.Setup((logger) => logger.Log(It.IsAny <string>())).Callback(() =>
                                                                             System.Console.WriteLine("called log"));
            var faker = new Faker <Person>();

            faker.RuleFor(_ => _.FirstName, f => f.Person.FirstName);
            faker.RuleFor(_ => _.LastName, f => f.Person.LastName);

            var persons = faker.Generate(20);

            var calc = new TestCalc.Lib.Calculator(mock.Object);
            // mock.Verify((logger) => logger.Log(It.IsAny<string>()), () => Times.Once());

            var actual = calc.Sum(2, 3);

            actual.Should().Be(5, because: "It's result of sum of 2 and 3");
        }
        public double DivTest(double x, double y)
        {
            var calc = new TestCalc.Lib.Calculator();

            return(calc.Div(x, y));
        }
        public double MulTest(double x, double y)
        {
            var calc = new TestCalc.Lib.Calculator();

            return(calc.Mul(x, y));
        }
        public double SubTest(double x, double y)
        {
            var calc = new TestCalc.Lib.Calculator();

            return(calc.Sub(x, y));
        }