public void After_adding_attribute_must_still_contain_original_attributes()
        {
            AttributesToAvoidReplicating.Add <string>();
            bool contains = AttributesToAvoidReplicating.Contains(typeof(System.Runtime.InteropServices.ComImportAttribute));

            Assert.IsTrue(contains);
        }
        public void After_adding_attribute_must_be_listed_as_contained()
        {
            AttributesToAvoidReplicating.Add <string>();
            bool contains = AttributesToAvoidReplicating.Contains(typeof(string));

            Assert.IsTrue(contains);
        }
Пример #3
0
 private static bool SpecialCaseAttributThatShouldNotBeReplicated(Type attribute)
 {
     return(AttributesToAvoidReplicating.Contains(attribute));
 }
Пример #4
0
 private static bool SpecialCaseAttributThatShouldNotBeReplicated(Type attribute)
 {
     return(AttributesToAvoidReplicating.Contains(attribute) ||
            (!CheckDynamicallyInvokable(attribute)));
 }