public void TestAddMethodSetsStateToOn() { var m = new Memory.Memory <Complex>(); m.Add(new Complex(10, 20)); Assert.AreEqual(MemoryState.On, m.State); }
public void TestAddMethodActuallyCalcsSum() { var m = new Memory.Memory <Fraction>(); var a = new Fraction(5, 12); var b = new Fraction(11, 24); var r = new Fraction(21, 24); m.Number = a; m.Add(b); Assert.AreEqual(r, m.Number); }