コード例 #1
0
 protected virtual void MultipleItemSetterVerifyDictionary(TestObjectWithDictionary gil)
 {
     gil.FreeformProperties.Should().Contain("best known for", "being awesome");
     gil.FreeformProperties.Should().Contain("skill level", 1000);
     gil.FreeformProperties.Should().ContainKey("updated at");
     gil.FreeformProperties ["updated at"].Should().BeOfType <DateTimeOffset>();
     gil.FreeformProperties.Should().HaveCount(5);
 }
コード例 #2
0
 protected virtual void MultipleItemSetterVerifyDictionary(TestObjectWithDictionary gil)
 {
     gil.FreeformProperties.Should().Contain("best known for", "being awesome");
     gil.FreeformProperties.Should().Contain("skill level", 1000);
     gil.FreeformProperties.Should().ContainKey("updated at");
     gil.FreeformProperties ["updated at"].Should().BeOfType<DateTimeOffset>();
     gil.FreeformProperties.Should().HaveCount(5);
 }
コード例 #3
0
 protected override void MultipleItemSetterVerifyDictionary(TestObjectWithDictionary gil)
 {
     // FIXME: varies from the base class by:
     //  - skill level being a double type, rather than an int
     //  - updated at being a JObject, rather than a DateTimeOffset
     // These are not the types I'd expect for these values, but, the RethinkDB datum converters are only plugged into the
     // top level of the object with the newtonsoft converter, not the values inside a dictionary.  This is debatably wrong,
     // but, I'm not fixing it right now... the best solution might be to incorporate any technical requirements of the
     // newtonsoft extension library into the core, and drop this extension library...
     gil.FreeformProperties.Should().Contain("best known for", "being awesome");
     gil.FreeformProperties.Should().Contain("skill level", 1000.0);
     gil.FreeformProperties.Should().ContainKey("updated at");
     gil.FreeformProperties ["updated at"].Should().BeOfType<JObject>();
     gil.FreeformProperties.Should().HaveCount(5);
 }