94b2861243
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
30 lines
575 B
C#
30 lines
575 B
C#
using System.Linq;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using Mono.Cecil.Rocks;
|
|
|
|
namespace Mono.Cecil.Tests {
|
|
|
|
[TestFixture]
|
|
public class ModuleDefinitionRocksTests : BaseTestFixture {
|
|
|
|
[Test]
|
|
public void GetAllTypesTest ()
|
|
{
|
|
TestCSharp ("Types.cs", 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 ()));
|
|
});
|
|
}
|
|
}
|
|
}
|