public void ValidObjectType(Type type, bool expectedValid) { bool valid = true; try { var description = TypeDescription.DescribeObject(type); } catch (System.Exception e) { Assert.IsAssignableFrom <ArgumentException>(e); valid = false; } Assert.Equal(expectedValid, valid); }