public void NegationZero() { Number negate = new Number(0); int expected = 0; Negation negation = new Negation(negate); decimal actual = negation.Operation(); Assert.AreEqual(expected, actual); }
public void NegationNegativeRealNumber() { Number negate = new Number(-10.5m); decimal expected = 10.5m; Negation negation = new Negation(negate); decimal actual = negation.Operation(); Assert.AreEqual(expected, actual); }
public void NegationPositiveRealNumber() { Number negate = new Number(10.5); double expected = -10.5; Negation negation = new Negation(negate); double actual = negation.Operation(); Assert.AreEqual(expected, actual); }
public void NegationNegativeInteger() { Number negate = new Number(-10m); int expected = 10; Negation negation = new Negation(negate); decimal actual = negation.Operation(); Assert.AreEqual(expected, actual); }
public void NegationPositiveInteger() { Number negate = new Number(10); int expected = -10; Negation negation = new Negation(negate); double actual = negation.Operation(); Assert.AreEqual(expected, actual); }