private static void InitializeInvalidSubscriptionsData() { InvalidSubscriptionsData.Add(Testing.GetTestResourcePath("invalidsubscriptions.xml")); }
private static void InitializeInvalidPublishSettingsData() { InvalidPublishSettings.Add(Testing.GetTestResourcePath("InvalidProfile.PublishSettings")); }
private static void InitializeValidPublishSettings2Data() { ValidPublishSettings2.Add(Testing.GetTestResourcePath("ValidProfile2.PublishSettings")); }
/// <summary> /// Get the contents of a file included in the test project as something to /// be copied on Deployment (see Local.testsettings > Deployment for /// examples). /// </summary> /// <param name="relativePath">Relative path to the resource.</param> /// <returns>the resource contents.</returns> public static string GetTestResourceContents(string relativePath) { return(File.ReadAllText(Testing.GetTestResourcePath(relativePath))); }