public void ShuffleTest_IntEnumerable() { IEnumerable original = new[] { 1, 2, 3, 4, 5 }; object obj = new ShuffleFormatter().Run(original, null, null, null); Assert.IsNotNull(obj); }
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] // ); }
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] // ); }
public void ShuffleTest_WithNull() { object obj = new ShuffleFormatter().Run(null, null, null, null); Assert.IsNull(obj); }
public void ShuffleTest_IgnoredForStrings() { object obj = new ShuffleFormatter().Run("string", null, null, null); Assert.AreEqual("string", obj as string); }