Beispiel #1
0
        public void TestCreateShouldCreateNewColumn()
        {
            var result = _factory.Create(1, 0, "Test", typeof(Boolean), SemanticType.Measure, new List <object> {
                true
            });

            Assert.That(result.Id, Is.EqualTo(1));
            Assert.That(result.Index, Is.EqualTo(0));
            Assert.That(result.Name, Is.EqualTo("Test"));
            Assert.That(result.DataType, Is.EqualTo(typeof(Boolean)));
            Assert.That(result.SemanticType, Is.EqualTo(SemanticType.Measure));
            Assert.That(result.Values, Has.Member(true));
        }