Beispiel #1
0
        public void WhenRehydrateMultiValueWithNullValue_ThenReturnsInstance()
        {
            var valueObject = TestMultiValueObject.Rehydrate()("{\"Val1\":\"NULL\",\"Val2\":25,\"Val3\":True}", null);

            valueObject.AStringValue.Should().BeNull();
            valueObject.AnIntegerValue.Should().Be(25);
            valueObject.ABooleanValue.Should().BeTrue();
        }
        public void WhenRehydrateMultiValue_ThenReturnsInstance()
        {
            var valueObject = new TestMultiValueObject("astringvalue", 25, true);

            valueObject.Rehydrate("{\"Val1\":\"astringvalue\",\"Val2\":25,\"Val3\":True}");

            valueObject.AStringValue.Should().Be("astringvalue");
            valueObject.AnIntegerValue.Should().Be(25);
            valueObject.ABooleanValue.Should().BeTrue();
        }