public void TestVersion2Schema() { var settings = PublishSettingsExtractor.GetFromXml(V2); var dictionary = settings.GetSubscriptions(); dictionary.Count.Should().Be(1, "Number of subscriptions in Xml .publishsettings string"); settings.SchemaVersion.Should().Be(2, "the schema number used"); }
public void TestVersion2SchemaWithForeginCultureSettings() { Thread.CurrentThread.CurrentCulture = new CultureInfo("sv-SE"); var settings = PublishSettingsExtractor.GetFromXml(V2); var dictionary = settings.GetSubscriptions(); dictionary.Count.Should().Be(1, "Number of subscriptions in Xml .publishsettings string"); settings.SchemaVersion.Should().Be(2, "the schema number used"); }