示例#1
0
            public void InitializesNewObjectWithValidArgument()
            {
                var attribute = new PrimaryEntityAttribute(Schema.AccountEntity.TypeName);

                Assert.IsNotNull(attribute);
                Assert.IsNotNull(attribute.EntityLogicalName);
                Assert.AreEqual(Schema.AccountEntity.TypeName, attribute.EntityLogicalName);
            }
示例#2
0
 public void ThrowsErrorForEmptyArgument()
 {
     var attribute = new PrimaryEntityAttribute(String.Empty);
 }
示例#3
0
 public void ThrowsErrorForNullArgument()
 {
     var attribute = new PrimaryEntityAttribute(null);
 }