コード例 #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);
 }