public void GetBulletsInAssemblyTest() { var types = new[] { typeof(NotBullet), typeof(TestBullet1), typeof(TestBullet2WithouAttrs), typeof(NotBulletWithAttrs) }; Assembly assembly = new TestAssembly(types); var actual = Executor.GetSortedBullets(assembly.GetTypes()); var enumerator = actual.GetEnumerator(); Assert.IsTrue(enumerator.MoveNext()); Assert.AreEqual(typeof(TestBullet1), enumerator.Current); Assert.IsFalse(enumerator.MoveNext()); }