public void Can_Use_ModelNode_SetNonPersistentPropertyBagValue() { var modelNode = new ModelNode(); var name = Rnd.String(); var value = Rnd.String(); modelNode.SetNonPersistentPropertyBagValue(name, value); Assert.AreEqual(value, modelNode.GetNonPersistentPropertyBagValue(name)); Assert.AreEqual(value, modelNode.NonPersistentPropertyBag.FirstOrDefault(p => p.Name == name).Value); }