Exemple #1
0
        public void ShuffleTest_IntEnumerable()
        {
            IEnumerable original = new[] { 1, 2, 3, 4, 5 };

            object obj = new ShuffleFormatter().Run(original, null, null, null);

            Assert.IsNotNull(obj);
        }
Exemple #2
0
        public void ShuffleTest_IntEnumerable()
        {
            IEnumerable original = new[] { 1, 2, 3, 4, 5 };

            object obj = new ShuffleFormatter().Run(original, null, null, null);

            Assert.IsNotNull(obj);
        }
Exemple #3
0
        public void ShuffleTest_IntGenericEnumerable()
        {
            IEnumerable<int> original = new[] { 1, 2, 3, 4, 5 };

            object obj = new ShuffleFormatter().Run(original, null, null, null);

            Assert.IsNotNull(obj);

            //			Assert.IsTrue(
            //			    original[0] != shuffled[0]
            //			    || original[1] != shuffled[1]
            //			    || original[2] != shuffled[2]
            //			    || original[3] != shuffled[3]
            //			    || original[4] != shuffled[4]
            //			);
        }
Exemple #4
0
        public void ShuffleTest_IntGenericEnumerable()
        {
            IEnumerable <int> original = new[] { 1, 2, 3, 4, 5 };

            object obj = new ShuffleFormatter().Run(original, null, null, null);

            Assert.IsNotNull(obj);

            //			Assert.IsTrue(
            //			    original[0] != shuffled[0]
            //			    || original[1] != shuffled[1]
            //			    || original[2] != shuffled[2]
            //			    || original[3] != shuffled[3]
            //			    || original[4] != shuffled[4]
            //			);
        }
Exemple #5
0
 public void ShuffleTest_WithNull()
 {
     object obj = new ShuffleFormatter().Run(null, null, null, null);
     Assert.IsNull(obj);
 }
Exemple #6
0
 public void ShuffleTest_IgnoredForStrings()
 {
     object obj = new ShuffleFormatter().Run("string", null, null, null);
     Assert.AreEqual("string", obj as string);
 }
Exemple #7
0
        public void ShuffleTest_IgnoredForStrings()
        {
            object obj = new ShuffleFormatter().Run("string", null, null, null);

            Assert.AreEqual("string", obj as string);
        }
Exemple #8
0
        public void ShuffleTest_WithNull()
        {
            object obj = new ShuffleFormatter().Run(null, null, null, null);

            Assert.IsNull(obj);
        }