public void BasicTest() { System.Collections.Generic.List<string> TestObject = new System.Collections.Generic.List<string>(); TestObject.AddRange(new string[] { "this", "is", "a", "test" }); ListMapping<int, string> Results = TestObject.Permute(); Assert.Equal(24, Results.Keys.Count); foreach (int Key in Results.Keys) foreach (string Item in Results[Key]) Assert.True(Item == "this" || Item == "is" || Item == "a" || Item == "test"); }
public void BasicTest() { System.Collections.Generic.List <string> TestObject = new System.Collections.Generic.List <string>(); TestObject.AddRange(new string[] { "this", "is", "a", "test" }); ListMapping <int, string> Results = TestObject.Permute(); Assert.Equal(24, Results.Keys.Count); foreach (int Key in Results.Keys) { foreach (string Item in Results[Key]) { Assert.True(Item == "this" || Item == "is" || Item == "a" || Item == "test"); } } }