public static void Verify(ProjectImportElement viewXml, ProjectImportElement realXml, ValidationContext context = null) { if (viewXml == null && realXml == null) { return; } VerifyProjectElement(viewXml, realXml, context); Assert.Equal(realXml.Project, viewXml.Project); ViewValidation.VerifySameLocation(realXml.ProjectLocation, viewXml.ProjectLocation, context); // mostly test the remoting infrastructure. Sdk Imports are not really covered by simple samples for now. // Todo: add mock SDK import closure to SdtGroup? Assert.Equal(realXml.Sdk, viewXml.Sdk); Assert.Equal(realXml.Version, viewXml.Version); Assert.Equal(realXml.MinimumVersion, viewXml.MinimumVersion); ViewValidation.VerifySameLocation(realXml.SdkLocation, viewXml.SdkLocation, context); Assert.Equal(realXml.ImplicitImportLocation, viewXml.ImplicitImportLocation); ViewValidation.VerifyProjectElement(viewXml.OriginalElement, realXml.OriginalElement, context); }