public void AnyAnonymousObjectCanBeConvertedToAnIDictionary() { var testObject = new {Key1 = "value1", Key2 = "value2"}; var testResult = testObject.ToCaseInvariantDictionary(); testResult["Key1"].ShouldBe("value1"); testResult["Key2"].ShouldBe("value2"); testResult.Count.ShouldBe(2); }