﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RazorEngine;
using NUnit.Framework;

namespace Test.RazorEngine
{
    /// <summary>
    /// Various general tests.
    /// </summary>
    [TestFixture]
    public class VariousTestsFixture
    {
        /// <summary>
        /// Test if we can call GetTypes on the RazorEngine assembly.
        /// This will make sure all SecurityCritical attributes are valid.
        /// </summary>
        [Test]
        public void AssemblyIsScannable()
        {
            typeof(Engine).Assembly.GetTypes();
        }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RazorEngine;
using NUnit.Framework;

namespace Test.RazorEngine
{
    /// <summary>
    /// Various general tests.
    /// </summary>
    [TestFixture]
    public class VariousTestsFixture
    {
        /// <summary>
        /// Test if we can call GetTypes on the RazorEngine assembly.
        /// This will make sure all SecurityCritical attributes are valid.
        /// </summary>
        [Test]
        public void AssemblyIsScannable()
        {
            typeof(Engine).Assembly.GetTypes();
        }
        /*
        /// <summary>
        /// Check that Contracts are enabled and work on this build machine.
        /// </summary>
        [Test]
        [ExpectedException(typeof(ArgumentException))]
        public void ConstractsWork()
        {
            System.Diagnostics.Contracts.Contract.Requires<ArgumentException>(false);
        }

        [Test]
        //[ExpectedException(typeof(Exception))]
        public void ConstractsWork_2()
        {
            System.Diagnostics.Contracts.Contract.Requires(false);
        }*/
    }
}

Add tests to check if contracts are working (currently disabled)
Add tests to check if contracts are working (currently disabled)
