mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
569 B
27 lines
569 B
using System.Linq; |
|
|
|
using NUnit.Framework; |
|
|
|
using Mono.Cecil.Rocks; |
|
|
|
namespace Mono.Cecil.Tests { |
|
|
|
[TestFixture] |
|
public class ModuleDefinitionRocksTests : BaseTestFixture { |
|
|
|
[TestCSharp ("Types.cs")] |
|
public void GetAllTypesTest (ModuleDefinition module) |
|
{ |
|
var sequence = new [] { |
|
module.GetType ("<Module>"), |
|
module.GetType ("Foo"), |
|
module.GetType ("Foo/Bar"), |
|
module.GetType ("Foo/Gazonk"), |
|
module.GetType ("Foo/Gazonk/Baz"), |
|
module.GetType ("Pan"), |
|
}; |
|
|
|
Assert.IsTrue (sequence.SequenceEqual (module.GetAllTypes ())); |
|
} |
|
} |
|
}
|
|
|