public void AloneEvenAverage() { double actual, expected; expected = 0; actual = _object.AloneEvenAverage(new int[0].ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 0; actual = _object.AloneEvenAverage(null); Assert.AreEqual(expected, actual, 3); expected = 0; actual = _object.AloneEvenAverage(new[] { 1, 3, 5, 7 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 0; actual = _object.AloneEvenAverage(new[] { 2, 4 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 2; actual = _object.AloneEvenAverage(new[] { 2 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 2; actual = _object.AloneEvenAverage(new[] { 2, 1 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 2; actual = _object.AloneEvenAverage(new[] { 3, 2, 1 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 6.4; actual = _object.AloneEvenAverage(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 12 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 3; actual = _object.AloneEvenAverage(new[] { 1, 2, 4, 3, 4, 8, 0, 5, 6, 7, 8, 6, -2, 9, 0 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 0.8; actual = _object.AloneEvenAverage(new[] { 2, -1, 4, 3, 4, -8, 0, 5, 6, 7, -8, 9, 0, 1 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = -1.6; actual = _object.AloneEvenAverage(new[] { -2, -1, -4, 3, 4, -8, 0, 5, 6, 7, -8, 9, 0, 1 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = -2.4; actual = _object.AloneEvenAverage(new[] { -6, -1, -4, 3, 4, -2, 0, 5, 6, 7, -8, 9, 0, 1 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); expected = 0; actual = _object.AloneEvenAverage(new[] { 0, 1, 2, 4, 3, 4, -8, 0, 5, 6, 7, -8, 9, 0, 1, -2, -3, 4 }.ToEnumerable()); Assert.AreEqual(expected, actual, 3); }