public void SimpleNumberWrapper() { var a = new SimpleNumberWrapper<double>(-34.4); a.Abs().Should().Be(new SimpleNumberWrapper<double>(34.4)); }
public void SimpleNumberWrapper() { var a = new SimpleNumberWrapper<int>(34); var b = new SimpleNumberWrapper<int>(15); a.Remainder(b).Should().Be(new SimpleNumberWrapper<int>(4)); }
public void SimpleNumberWrapper() { var a = new SimpleNumberWrapper<double>(-34.4); var b = new SimpleNumberWrapper<double>(-1); a.Plus(b).Should().Be(new SimpleNumberWrapper<double>(-35.4)); }
public void SimpleNumberWrapper() { var a = new SimpleNumberWrapper<double>(2); var b = new SimpleNumberWrapper<double>(3); a.RaisedTo(b).Should().Be(new SimpleNumberWrapper<double>(8)); }
public void SimpleNumberWrapper() { var a = new SimpleNumberWrapper<double>(12); var b = new SimpleNumberWrapper<double>(3); a.DividedBy(b).Should().Be(new SimpleNumberWrapper<double>(4)); }