public void Deserialize_ClassWithoutAttribute() { string input = "{ " + "\"__type\" : \"MongoDB.FrameworkSerializer.Tests.SerializableConventionTests+WithoutAttribute\" " + "}"; WithoutAttribute result = Deserialize <WithoutAttribute>(input); Assert.NotNull(result); }
public void Serialize_ClassWithoutAttribute() { WithoutAttribute withAttribute = new WithoutAttribute(); string result = Serialize(withAttribute); Assert.NotNull(result); Assert.Equal( "{ " + "\"__type\" : \"MongoDB.FrameworkSerializer.Tests.SerializableConventionTests+WithoutAttribute\" " + "}", result); }