Example #1
0
 [Test] public void AddResults()
 {
     var parseResult = new ParseResult
     {
         {"res1", 1},
         {"res2", 2},
         {"res3", new[] {"a", "b", "c"}},
         {"res4", "4"}
     };
     Assert.That(parseResult.ToDictionary(),
         new BaseSmartEqualityConstraint(new Dictionary<string, object>(StringComparer.InvariantCultureIgnoreCase)
         {
             {"res1", 1},
             {"res2", 2},
             {"res3", new[] {"a", "b", "c"}},
             {"res4", "4"}
         }));
 }
Example #2
0
 public void AreEqual(ParseResult expected, ParseResult actual)
 {
     AreEqual(expected.ToDictionary(), actual.ToDictionary());
     CollectionAssert.AreEqual(expected.UnrecognizedArguments, actual.UnrecognizedArguments,
         "UnrecognizedArguments should be the same");
 }