public void PASS_Serialize() { ParentType parent = new ParentType("da-parent"); string json = JsonConvert.SerializeObject(parent); Assert.IsNotNull(json); string expectedJson = "{\"type\":\"da-parent\"}"; Assert.IsNotNull(expectedJson, json); }
public void PASS_Create() { ParentType parent = new ParentType("da-parent"); Assert.IsNotNull(parent); Assert.AreEqual("da-parent", parent.Type); }