示例#1
0
            public static void ReturnsDifferentRandomizersForDifferentMethods()
            {
                var r1 = Randomizer.GetRandomizer(testMethod1);
                var r2 = Randomizer.GetRandomizer(testMethod2);

                Assert.That(r1, Is.Not.SameAs(r2));
            }
示例#2
0
            public static void ReturnsSameRandomizerForSameMethod()
            {
                var r1 = Randomizer.GetRandomizer(testMethod1);
                var r2 = Randomizer.GetRandomizer(testMethod1);

                Assert.That(r1, Is.SameAs(r2));
            }
 public static void ReturnsSameRandomizerForSameParameter()
 {
     ParameterInfo p = testMethod1.GetParameters()[0];
     var r1 = Randomizer.GetRandomizer(p);
     var r2 = Randomizer.GetRandomizer(p);
     Assert.That(r1, Is.SameAs(r2));
 }
 public static void ReturnsSameRandomizerForDifferentParametersOfSameMethod()
 {
     ParameterInfo p1 = testMethod1.GetParameters()[0];
     ParameterInfo p2 = testMethod1.GetParameters()[1];
     var r1 = Randomizer.GetRandomizer(p1);
     var r2 = Randomizer.GetRandomizer(p2);
     Assert.That(r1, Is.SameAs(r2));
 }