public void PASS_Serialize() { DocumentIndex index = new DocumentIndex() { IsEnabled = true }; string json = JsonConvert.SerializeObject(index); Assert.IsNotNull(json); string expectedJson = "{\"enabled\":true}"; Assert.AreEqual(expectedJson, json); }
public void PASS_Create() { DocumentIndex index = new DocumentIndex(); Assert.IsNotNull(index); Assert.AreEqual(false, index.IsEnabled); }