Stylet/StyletUnitTests/AssemblySourceTests.cs

31 lines
733 B
C#
Raw Normal View History

2014-05-06 05:11:51 -07:00
using NUnit.Framework;
using Stylet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace StyletUnitTests
{
[TestFixture]
public class AssemblySourceTests
{
[TestFixtureSetUp]
public void SetUpFixture()
{
Execute.TestExecuteSynchronously = true;
2014-05-10 12:11:02 -07:00
AssemblySource.Assemblies.Clear();
2014-05-06 05:11:51 -07:00
}
[Test]
public void TestAssemblies()
{
var assembly = Assembly.GetExecutingAssembly();
AssemblySource.Assemblies.Add(assembly);
CollectionAssert.AreEqual(AssemblySource.Assemblies, new[] { assembly });
}
}
}