public void TestReadOnlyFruit() { ReadOnlyFirst r = JsonConvert.DeserializeObject <ReadOnlyFirst>("{\"baz\":\"from json gaz\",\"bar\":\"from json bar\"}"); Assert.Equal("from json bar", r.Bar); Assert.Equal("{\"baz\":\"from json gaz\"}", JsonConvert.SerializeObject(r)); }
public void Init() { instance = new ReadOnlyFirst(); }
public void Init() { instance = new ReadOnlyFirst(); }