public void TheStateOfAValueReferenceCanBeRestoredFromANumberSnapshot()
        {
            var reference = new ValueReferenceDefinitionBuilder().Build().CreateValueReference(engine);

            reference.RestoreFromSnapshot(engine, new ValueReference.Snapshot("1", new BigDouble(11)));
            Assert.AreEqual(new BigDouble(11), reference.ValueAsNumber());
        }
        public void TheStateOfAValueReferenceCanBeRestoredFromAMapSnapshot()
        {
            var reference = new ValueReferenceDefinitionBuilder().Build().CreateValueReference(engine);

            reference.RestoreFromSnapshot(engine, new ValueReference.Snapshot("1", new Dictionary <string, ValueReference.Snapshot>()));
            Assert.AreEqual(new Dictionary <string, ValueReference>(), reference.ValueAsMap());
        }
        public void TheStateOfAValueReferenceCanBeRestoredFromABooleanSnapshot()
        {
            var reference = new ValueReferenceDefinitionBuilder().Build().CreateValueReference(engine);

            reference.RestoreFromSnapshot(engine, new ValueReference.Snapshot("1", true));
            Assert.AreEqual(true, reference.ValueAsBool());
        }