PageRenderTime 15ms CodeModel.GetById 6ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/Mono.Cecil/rocks/Test/Mono.Cecil.Tests/ModuleDefinitionRocksTests.cs

http://github.com/icsharpcode/ILSpy
C# | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | e071841b9df0e2a9860c8d2c2e92e8fc MD5 | raw file
 1using System.Linq;
 2
 3using NUnit.Framework;
 4
 5using Mono.Cecil.Rocks;
 6
 7namespace Mono.Cecil.Tests {
 8
 9	[TestFixture]
10	public class ModuleDefinitionRocksTests : BaseTestFixture {
11
12		[TestCSharp ("Types.cs")]
13		public void GetAllTypesTest (ModuleDefinition module)
14		{
15			var sequence = new [] {
16				module.GetType ("<Module>"),
17				module.GetType ("Foo"),
18				module.GetType ("Foo/Bar"),
19				module.GetType ("Foo/Gazonk"),
20				module.GetType ("Foo/Gazonk/Baz"),
21				module.GetType ("Pan"),
22			};
23
24			Assert.IsTrue (sequence.SequenceEqual (module.GetAllTypes ()));
25		}
26	}
27}