11 references to GetElement
Microsoft.Build.Engine.UnitTests (11)
Definition\ToolsetConfigurationReader_Tests.cs (11)
546Assert.Equal("windows", allPaths.GetElement(0).OS);
547Assert.Equal(2, allPaths.GetElement(0).PropertyElements.Count);
548Assert.Equal(@"c:\foo", allPaths.GetElement(0).PropertyElements.GetElement("MSBuildExtensionsPath").Value);
549Assert.Equal(@"c:\foo64;c:\bar64", allPaths.GetElement(0).PropertyElements.GetElement("MSBuildExtensionsPath64").Value);
551Assert.Equal("osx", allPaths.GetElement(1).OS);
552Assert.Equal(2, allPaths.GetElement(1).PropertyElements.Count);
553Assert.Equal(@"/tmp/foo", allPaths.GetElement(1).PropertyElements.GetElement("MSBuildExtensionsPath").Value);
554Assert.Equal(@"/tmp/foo32;/tmp/bar32", allPaths.GetElement(1).PropertyElements.GetElement("MSBuildExtensionsPath32").Value);
556Assert.Equal("unix", allPaths.GetElement(2).OS);
557Assert.Single(allPaths.GetElement(2).PropertyElements);
558Assert.Equal(@"/tmp/bar", allPaths.GetElement(2).PropertyElements.GetElement("MSBuildExtensionsPath").Value);