/// <summary> /// Initializes a new instance of the <see cref="IntegrationContext"/> class. /// </summary> /// <param name="item">The item.</param> public IntegrationContext(ServerItem item) { this.Item = item; }
private static void PerformSerialisationTest(ServerItem configuration, string example) { var server = new Server { Version = new Version(2, 0) }; server.Children.Add(configuration); var xaml = XamlServices.Save(server); using (var stream = AssemblyHelper.RetrieveExampleFile(example)) { using (var reader = new StreamReader(stream)) { var expected = reader.ReadToEnd(); Assert.AreEqual(expected, xaml); } } }