Exemplo n.º 1
0
        public void CorrectlyRetrievesAllEnumeratedValuesForAGivenEnumerationType()
        {
            IEnumerationHelper            helper = new EnumerationHelper();
            IEnumerable <PersistenceMode> modes  = helper.GetAll <PersistenceMode>();

            EnumerableAssert.That(modes, Is.EquivalentTo(new PersistenceMode[] { PersistenceMode.Live, PersistenceMode.Archive }));
        }
		public void CorrectlyRetrievesAllEnumeratedValuesForAGivenEnumerationType()
		{
			IEnumerationHelper helper = new EnumerationHelper();
			IEnumerable<PersistenceMode> modes = helper.GetAll<PersistenceMode>();
			EnumerableAssert.That(modes, Is.EquivalentTo(new PersistenceMode[] { PersistenceMode.Live, PersistenceMode.Archive }));
		}