public void ReadXElement_Empty_ThrowsSyncDocumentException()
        {
            EndpointsDescriptor endPointsDescriptor = new EndpointsDescriptor();

            XElement element = XElement.Parse("<NotEndpoints />");
            endPointsDescriptor.ReadXElement(element);
        }
 public void GetXElement_Empty_HasTwoChildNodes()
 {
     EndpointsDescriptor endpointsDescriptor = new EndpointsDescriptor();
     XElement element = endpointsDescriptor.GetXElement();
     Assert.IsTrue(element.Elements().Count() == 2, "Enpoints have to have 2 child nodes");
 }
 public void ReadXElement_Empty_ThrowsArgumentNullException()
 {
     EndpointsDescriptor endPointsDescriptor = new EndpointsDescriptor();
     XElement element = null;
     endPointsDescriptor.ReadXElement(element);
 }