| 1 |
using System.Linq; |
| 2 |
|
| 3 |
using NUnit.Framework; |
| 4 |
|
| 5 |
using Mono.Cecil.Rocks; |
| 6 |
|
| 7 |
namespace Mono.Cecil.Tests { |
| 8 |
|
| 9 |
[TestFixture] |
| 10 |
public class ModuleDefinitionRocksTests : BaseTestFixture { |
| 11 |
|
| 12 |
[Test] |
| 13 |
public void GetAllTypesTest () |
| 14 |
{ |
| 15 |
TestCSharp ("Types.cs", module => { |
| 16 |
var sequence = new [] { |
| 17 |
module.GetType ("<Module>"), |
| 18 |
module.GetType ("Foo"), |
| 19 |
module.GetType ("Foo/Bar"), |
| 20 |
module.GetType ("Foo/Gazonk"), |
| 21 |
module.GetType ("Foo/Gazonk/Baz"), |
| 22 |
module.GetType ("Pan"), |
| 23 |
}; |
| 24 |
|
| 25 |
Assert.IsTrue (sequence.SequenceEqual (module.GetAllTypes ())); |
| 26 |
}); |
| 27 |
} |
| 28 |
} |
| 29 |
} |