public void ExecuteComplexNumberTest() { var complex = new Complex(3.1, 2.5); var exp = new Re(new ComplexNumber(complex)); Assert.Equal(complex.Real, exp.Execute()); }
public void ExecuteTest1() { var complex = new Complex(3.1, 2.5); var exp = new Re(new ComplexNumber(complex)); Assert.Equal(complex.Real, exp.Execute()); }
public void ExecuteExeptionTest() { var exp = new Re(new Number(2)); Assert.Throws <ResultIsNotSupportedException>(() => exp.Execute()); }