Skip to content

Commit e9df8e9

Browse files
committed
Adjustments to make test compatible with older nunit version
1 parent 79d4640 commit e9df8e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vsintegration/src/unittests/Tests.ProjectSystem.References.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,14 @@ type References() =
642642

643643
// check reference node properties
644644
Assert.IsNotNull comReference
645-
Assert.IsInstanceOf(typeof<ComReferenceNode>, comReference)
645+
Assert.IsTrue(comReference :? ComReferenceNode)
646646
let comRef = comReference :?> ComReferenceNode
647647
Assert.AreEqual(1, comRef.MajorVersionNumber)
648648
Assert.AreEqual(0, comRef.MinorVersionNumber)
649649
Assert.AreEqual(guid, comRef.TypeGuid)
650650
Assert.AreEqual("Microsoft Shell Controls And Automation", comRef.Caption)
651651
let sysDirectory = Environment.GetFolderPath(Environment.SpecialFolder.SystemX86)
652-
StringAssert.AreEqualIgnoringCase(Path.Combine(sysDirectory, "shell32.dll"), comRef.InstalledFilePath)
652+
Assert.IsTrue(String.Compare(Path.Combine(sysDirectory, "shell32.dll"), comRef.InstalledFilePath, StringComparison.OrdinalIgnoreCase) = 0)
653653

654654
// check node exists under references
655655
let l = new List<ComReferenceNode>()

0 commit comments

Comments
 (0)