Skip to content

Commit

Permalink
HashTableCasts unit tests [ordered] as well as regular hashtables
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy1981 committed Sep 16, 2012
1 parent 2cf773c commit ff97e01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DriverUnitTestsPosh/HashTableCasts/HashtableTests.cs
Expand Up @@ -27,6 +27,12 @@ private void TestHashTableCast(Type type)
Assert.AreEqual(3, results.Count, "Expected three result sets");
Assert.IsTrue(results.Contains(new PSObject(new BsonElement("Name", "Justin Dearing"))));
Assert.IsTrue(results.Contains(new PSObject(new BsonElement("PhoneNumber", "718-555-1212"))));

//Now do it for [ordered]@{ . . . }
results = RunScript(string.Format(scriptFormat, type.FullName + "][ordered"));
Assert.AreEqual(3, results.Count, "Expected three result sets");
Assert.IsTrue(results.Contains(new PSObject(new BsonElement("Name", "Justin Dearing"))));
Assert.IsTrue(results.Contains(new PSObject(new BsonElement("PhoneNumber", "718-555-1212"))));
}

[Test]
Expand Down

0 comments on commit ff97e01

Please sign in to comment.