示例#1
0
 public void ShouldGetVariableName()
 {
     var property = new EntityProperty { Name = "Foo", Type = "System.Int64" };
     Assert.AreEqual("foo", property.VariableName);
 }
示例#2
0
 public void ShouldGetLongTypeName()
 {
     var property = new EntityProperty { Name = "Foo", Type = "System.Int64" };
     Assert.AreEqual("long", property.TypeName);
 }
示例#3
0
 public void ShouldGetStringTypeName()
 {
     var property = new EntityProperty { Name = "Foo", Type = "System.String" };
     Assert.AreEqual("string", property.TypeName);
 }
示例#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);
 }