public static IsSimpleProperty ( |
||
type |
/// The |
|
Результат | bool |
public void IsSimpleProperty() { Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(string))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(long))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(bool))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(int))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(float))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(ushort))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(double))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(ulong))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(char))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(uint))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(string[]))); Assert.IsTrue(ObjectUtils.IsSimpleProperty(typeof(Type))); Assert.IsFalse(ObjectUtils.IsSimpleProperty(typeof(TestObject))); Assert.IsFalse(ObjectUtils.IsSimpleProperty(typeof(IList[]))); }