Exemplo n.º 1
0
 public void GetValueFromJsonIfPropertIsSet()
 {
     Moksy.Storage.SimulationManager manager = new Storage.SimulationManager();
     var result = manager.GetPropertyValueFromJson(@"{ ""TheProperty"" : ""TheValue"" }", "TheProperty");
     Assert.AreEqual("TheValue", result);
 }
Exemplo n.º 2
0
 public void GetValueFromJsonIsNullIfNotJsonButPropertyNull()
 {
     Moksy.Storage.SimulationManager manager = new Storage.SimulationManager();
     var result = manager.GetPropertyValueFromJson("sdfsdf", null);
     Assert.IsNull(result);
 }
Exemplo n.º 3
0
 public void GetValueFromJsonIfPropertIsNull()
 {
     Moksy.Storage.SimulationManager manager = new Storage.SimulationManager();
     var result = manager.GetPropertyValueFromJson(@"{ ""TheProperty"" : null }", "TheProperty");
     Assert.IsNull(result);
 }