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