public void MaxValue() { Int32 expected, actual; expected = 0; actual = _object.MaxValue(null); Assert.AreEqual(expected, actual); expected = 0; actual = _object.MaxValue(new int[0].ToEnumerable()); Assert.AreEqual(expected, actual); expected = 5; actual = _object.MaxValue(new[] { 1, 4, 5, 2, 2 }.ToEnumerable()); Assert.AreEqual(expected, actual); expected = 7; actual = _object.MaxValue(new[] { 6, 4, 7, 4, 2, 7, 2 }.ToEnumerable()); Assert.AreEqual(expected, actual); expected = 6; actual = _object.MaxValue(new[] { 6 }.ToEnumerable()); Assert.AreEqual(expected, actual); }