コード例 #1
0
 public void EnsureValuesAreCorrectlySetWhenUsingConfigurationType()
 {
     BaseTypeAttribute baseTypeAttribute = new BaseTypeAttribute(typeof(Array), null);
     Assert.AreEqual(typeof(Array), baseTypeAttribute.BaseType);
     Assert.AreEqual(TypeSelectorIncludes.None, baseTypeAttribute.TypeSelectorIncludes);
     Assert.IsNull(baseTypeAttribute.ConfigurationType);
 }
コード例 #2
0
 public void FixtureSetUp()
 {
     baseTypeAttribute = new BaseTypeAttribute(typeof(Array));
 }
コード例 #3
0
 public void EnsureValuesAreCorrectlySet()
 {
     BaseTypeAttribute baseTypeAttribute = new BaseTypeAttribute(typeof(Array));
     Assert.AreEqual(typeof(Array), baseTypeAttribute.BaseType);
     Assert.AreEqual(TypeSelectorIncludes.None, baseTypeAttribute.TypeSelectorIncludes);
 }
コード例 #4
0
 public void ConstructingBaseTypeAttributeWithNullTypeThrows()
 {
     BaseTypeAttribute baseTypeAttribute = new BaseTypeAttribute(null);
 }