* Fixes of errors detected while integrating DynamORM to existing project
* New features (VirtualColumn, VirtualMode, BeginBlock, EndBlock)
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.SQLite">
|
||||
<HintPath>lib\System.Data.SQLite.dll</HintPath>
|
||||
<HintPath>Libraries\System.Data.SQLite.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -53,5 +54,20 @@ namespace DynamORM.Tests.Helpers
|
||||
|
||||
Assert.AreEqual(a.GetType(), b.GetType());
|
||||
}
|
||||
|
||||
/// <summary>Test anonymous type value.</summary>
|
||||
[Test]
|
||||
public void TestAnonTypeValue()
|
||||
{
|
||||
var a = new { x = 1, y = "bla bla" };
|
||||
var b = new { x = 1, y = "bla bla" };
|
||||
|
||||
Assert.AreEqual(a, b);
|
||||
Assert.IsTrue(a.Equals(b));
|
||||
|
||||
Dictionary<object, int> dict = new Dictionary<object, int>() { { a, 999 } };
|
||||
|
||||
Assert.IsTrue(dict.ContainsKey(b));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user