Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

38 lines
730 B
C#

// AssemblyBuilderAccessTest.cs
//
// Author: Vineeth N <nvineeth@yahoo.com>
//
// (C) 2004 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Reflection.Emit;
using NUnit.Framework;
namespace MonoTests.System.Reflection.Emit
{
/// <summary>
/// A simple class to test the values of the enum AssemblyBuilderAccess.
/// </summary>
[TestFixture]
public class AssemblyBuilderAccessTest
{
[Test]
public void RunTest ()
{
Assert.AreEqual((int) AssemblyBuilderAccess.Run, 1);
}
[Test]
public void RunAndSaveTest ()
{
Assert.AreEqual ((int) AssemblyBuilderAccess.RunAndSave, 3);
}
[Test]
public void SaveTest()
{
Assert.AreEqual ((int) AssemblyBuilderAccess.Save, 2);
}
}
}