public void GeneratesRandomDouble() { for (int i = 0; i < new Random().Next(5, 20); i++) { double v1 = RandomUtilities.GetRandomDouble(); double v2 = RandomUtilities.GetRandomDouble(v1); Assert.AreNotEqual(v1, v2); v1 = RandomUtilities.GetRandom <double>(); Assert.IsInstanceOfType(v1, typeof(double)); v2 = RandomUtilities.GetRandom(v1); Assert.IsInstanceOfType(v2, typeof(double)); Assert.AreNotEqual(v1, v2); v1 = RandomUtilities.GetRandom(typeof(double)); Assert.IsInstanceOfType(v1, typeof(double)); v2 = RandomUtilities.GetRandom(typeof(double), v1); Assert.IsInstanceOfType(v2, typeof(double)); Assert.AreNotEqual(v1, v2); } }