jskeet / unconstrained-melody

Automatically exported from code.google.com/p/unconstrained-melody
131 stars 17 forks source link

Bug in EnumsTest #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reading your EnumsTest file, I see a bug in the following method, which will 
generate a "false-positive" (because it doesn't test what the method name says 
it should):

        [Test]
        public void GetNamesArray()
        {
            Number[] numbers = Enums.GetValuesArray<Number>();
            Assert.IsTrue(numbers.SequenceEqual(new[] { Number.One, Number.Two, Number.Three }));
        }

It should call Enums.GetNames, not the .GetValuesArray

Original issue reported on code.google.com by administ...@dynamicgeneration.com on 23 Jan 2013 at 2:17

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r13.

Original comment by jonathan.skeet on 24 Jan 2013 at 8:43