public void Should_round_value_withDigit(double value, double expectedValue) { var expected = new Megabyte(expectedValue); var instance = new Megabyte(value); var actual = instance.Round(1); Assert.AreEqual(expected, actual); }
public void Should_roundvalue_withMode(MidpointRounding mode, double value, double expectedValue) { var expected = new Megabyte(expectedValue); var instance = new Megabyte(value); var actual = instance.Round(mode); Assert.AreEqual(expected, actual); }