Пример #1
0
        public void ContractAttribute_contractInterfaceProperty_via_ctor()
        {
            Type expected = typeof( Object );
            ContractAttribute target = new ContractAttribute( expected );

            Assert.AreEqual<Type>( expected, target.ContractInterface );
        }
Пример #2
0
 public void ContractAttribute_contractInterfaceProperty_via_default_ctor()
 {
     var target = new ContractAttribute();
     Assert.IsNull( target.ContractInterface );
 }
Пример #3
0
        public void ContractAttribute_ctor()
        {
            ContractAttribute target = new ContractAttribute( typeof( Object ) );

            Assert.IsNotNull( target );
        }
Пример #4
0
 public void ContractAttribute_ctor_argumentNullException_on_null_contract()
 {
     ContractAttribute target = new ContractAttribute( null );
 }
Пример #5
0
        public void ContractAttribute_default_ctor()
        {
            var target = new ContractAttribute();

            Assert.IsNotNull( target );
        }