public void PositiveReToStringTest() { var token = new ComplexNumberToken(new Complex(5.3, 2.12)); Assert.Equal("Complex Number: 5.3+2.12i", token.ToString()); }
public void ZeroReToStringTest() { var token = new ComplexNumberToken(new Complex(0, 1.3)); Assert.Equal("Complex Number: 1.3i", token.ToString()); }
public void ZeroImToStringTest() { var token = new ComplexNumberToken(new Complex(5.3, 0)); Assert.Equal("Complex Number: 5.3", token.ToString()); }
public void NegativeImToStringTest() { var token = new ComplexNumberToken(new Complex(5.3, -2.12)); Assert.Equal("Complex Number: 5.3-2.12i", token.ToString()); }
public void ImNegOneToStringTest() { var token = new ComplexNumberToken(new Complex(0, -1)); Assert.Equal("Complex Number: -i", token.ToString()); }