Skip to content

Commit

Permalink
Fix ObjectModel v11 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Apr 22, 2024
1 parent b588819 commit e742849
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/NUnitTestAdapterTests/ProjectTests.cs
Expand Up @@ -33,18 +33,6 @@ namespace NUnit.VisualStudio.TestAdapter.Tests;
[TestFixture]
public class ProjectTests
{
#if NET462
[Test]
public void ThatTheReferenceToMicrosoftTestObjectModelPointsToVS2012Version()
{
var dir = TestContext.CurrentContext.TestDirectory;
var assembly = Assembly.LoadFrom(dir + "/NUnit3.TestAdapter.dll");
var refNames = assembly.GetReferencedAssemblies().Where(ass => ass.Name == "Microsoft.VisualStudio.TestPlatform.ObjectModel").ToList();
ClassicAssert.IsTrue(refNames.Count == 1, "No reference to Microsoft.VisualStudio.TestPlatform.ObjectModel found");
ClassicAssert.IsTrue(refNames[0].Version.Major == 11, "Microsoft.VisualStudio.TestPlatform.ObjectModel must point to the 2012 version (11)");
}
#endif

[Test]
public void ThatTheTestAdapterEndsWithTestAdapterDll()
{
Expand Down

0 comments on commit e742849

Please sign in to comment.