The expression tree cloner was not able to assign read-only field -- fixed; expanded tests to safeguard against regressions
git-svn-id: file:///srv/devel/repo-conversion/nusu@265 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
4c408a56ad
commit
21754b8e87
3 changed files with 116 additions and 30 deletions
|
|
@ -100,6 +100,8 @@ namespace Nuclex.Support.Cloning {
|
|||
public TestReferenceType GetOnlyProperty { get { return null; } }
|
||||
/// <summary>A property that only has a setter</summary>
|
||||
public TestReferenceType SetOnlyProperty { set { } }
|
||||
/// <summary>A read-only field</summary>
|
||||
public readonly TestValueType ReadOnlyField;
|
||||
/// <summary>Field typed as base class holding a derived instance</summary>
|
||||
public TestReferenceType DerivedField;
|
||||
/// <summary>Field typed as base class holding a derived instance</summary>
|
||||
|
|
@ -136,8 +138,10 @@ namespace Nuclex.Support.Cloning {
|
|||
public TestReferenceType AlwaysNullProperty { get; set; }
|
||||
/// <summary>A property that only has a getter</summary>
|
||||
public TestReferenceType GetOnlyProperty { get { return null; } }
|
||||
/// <summary>A property that only has a s</summary>
|
||||
/// <summary>A property that only has a setter</summary>
|
||||
public TestReferenceType SetOnlyProperty { set { } }
|
||||
/// <summary>A read-only field</summary>
|
||||
public readonly TestValueType ReadOnlyField;
|
||||
/// <summary>Field typed as base class holding a derived instance</summary>
|
||||
public TestReferenceType DerivedField;
|
||||
/// <summary>Field typed as base class holding a derived instance</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue