Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Minor.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwin committed May 7, 2010
1 parent 51b1b70 commit 963a45f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,23 @@ public void CanNotCreateObjectFromPrivateConstructor()

Assert.IsNotNull(obj);
}

public class SetProtectedPropertys
{
protected double Property { get; set; }

public double GetProperty() {return Property; }
}

[Test]
public void CanSetProtectedProperty()
{
var bson = Serialize(new Document("Property", 4));

var prop = Deserialize<SetProtectedPropertys>(bson);

Assert.IsNotNull(prop);
Assert.AreEqual(4, prop.GetProperty());
}
}
}

0 comments on commit 963a45f

Please sign in to comment.