예제 #1
0
        public void Importance_should_return_value_from_ctor()
        {
            const Importance importance = Importance.NoOneReallyCaresAbout;
            var testImportanceAttribute = new TestImportanceAttribute(importance);

            Assert.AreEqual(importance, testImportanceAttribute.Importance);
        }
 public void GetMetadata_should_return_Importance()
 {
     const Importance importance = Importance.NoOneReallyCaresAbout;
     var testImportanceAttribute = new TestImportanceAttribute(importance);
     int count = 0;
     foreach (var pair in testImportanceAttribute.GetMetadata())
     {
         Assert.AreEqual(MetadataKeys.Importance, pair.Key);
         Assert.AreEqual(importance.ToString(), pair.Value);
         count++;
     }
     Assert.AreEqual(1, count);
 }
예제 #3
0
        public void GetMetadata_should_return_Importance()
        {
            const Importance importance = Importance.NoOneReallyCaresAbout;
            var testImportanceAttribute = new TestImportanceAttribute(importance);
            int count = 0;

            foreach (var pair in testImportanceAttribute.GetMetadata())
            {
                Assert.AreEqual(MetadataKeys.Importance, pair.Key);
                Assert.AreEqual(importance.ToString(), pair.Value);
                count++;
            }
            Assert.AreEqual(1, count);
        }
 public void Importance_should_return_value_from_ctor()
 {
     const Importance importance = Importance.NoOneReallyCaresAbout;
     var testImportanceAttribute = new TestImportanceAttribute(importance);
     Assert.AreEqual(importance, testImportanceAttribute.Importance);
 }