Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 639 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace Simple.Data.UnitTest
{
[TestFixture]
public class DynamicTableTest
{
[Test]
public void PropertyShouldReturnDynamicReference()
{
//Arrange
dynamic table = new DynamicTable("Test", null);
// Act
ObjectReference column = table.TestColumn;
// Assert
Assert.AreEqual("Test", column.GetOwner().GetName());
Assert.AreEqual("TestColumn", column.GetName());
}
}
}