Exemple #1
0
        public void ExecuteComplexNumberTest()
        {
            var complex = new Complex(3.1, 2.5);
            var exp     = new Re(new ComplexNumber(complex));

            Assert.Equal(complex.Real, exp.Execute());
        }
Exemple #2
0
        public void ExecuteTest1()
        {
            var complex = new Complex(3.1, 2.5);
            var exp = new Re(new ComplexNumber(complex));

            Assert.Equal(complex.Real, exp.Execute());
        }
Exemple #3
0
        public void ExecuteExeptionTest()
        {
            var exp = new Re(new Number(2));

            Assert.Throws <ResultIsNotSupportedException>(() => exp.Execute());
        }