Ejemplo n.º 1
0
 public void ShouldGetVariableName()
 {
     var property = new EntityProperty { Name = "Foo", Type = "System.Int64" };
     Assert.AreEqual("foo", property.VariableName);
 }
Ejemplo n.º 2
0
 public void ShouldGetLongTypeName()
 {
     var property = new EntityProperty { Name = "Foo", Type = "System.Int64" };
     Assert.AreEqual("long", property.TypeName);
 }
Ejemplo n.º 3
0
 public void ShouldGetStringTypeName()
 {
     var property = new EntityProperty { Name = "Foo", Type = "System.String" };
     Assert.AreEqual("string", property.TypeName);
 }
Ejemplo n.º 4
0
 public void ShouldCreateEntityProperty()
 {
     var property = new EntityProperty{Name ="Foo", Type = "System.String"};
     Assert.AreEqual("Foo", property.Name);
     Assert.AreEqual("System.String", property.Type);
 }