public void TestToXElement() { var constraintBasicCompulsorySpace = new ConstraintBasicCompulsorySpace(); Assert.AreEqual("<ConstraintBasicCompulsorySpace>" + System.Environment.NewLine + " <Weight_Percentage>100</Weight_Percentage>" + System.Environment.NewLine + "</ConstraintBasicCompulsorySpace>", constraintBasicCompulsorySpace.ToXelement().ToString()); }
public void TestWeight() { var constraintBasicCompulsorySpace = new ConstraintBasicCompulsorySpace(); Assert.AreEqual("100", constraintBasicCompulsorySpace.ToXelement().Element("Weight_Percentage").Value); }
public void CreateTest() { var constraintBasicCompulsorySpace = new ConstraintBasicCompulsorySpace(); Assert.IsEmpty(constraintBasicCompulsorySpace.Create(null)); }
public void TestToXElementHasElement() { var constraintBasicCompulsorySpace = new ConstraintBasicCompulsorySpace(); Assert.IsTrue(constraintBasicCompulsorySpace.ToXelement().HasElements); }