using umbraco.cms.businesslogic.macro; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; namespace umbraco.Test { /// ///This is a test class for MacroPropertyTypeTest and is intended ///to contain all MacroPropertyTypeTest Unit Tests /// [TestClass()] public class MacroPropertyTypeTest { /// /// Test the constructor to throw an exception when the object is not found by id /// [TestMethod()] [ExpectedException(typeof(ArgumentException))] public void MacroProperty_Not_Found_Constructor() { MacroProperty u = new MacroProperty(-1111); } #region Tests to write ///// /////A test for MacroPropertyType Constructor ///// //[TestMethod()] //public void MacroPropertyTypeConstructorTest1() //{ // MacroPropertyType target = new MacroPropertyType(); // Assert.Inconclusive("TODO: Implement code to verify target"); //} ///// /////A test for MacroPropertyType Constructor ///// //[TestMethod()] //public void MacroPropertyTypeConstructorTest2() //{ // int Id = 0; // TODO: Initialize to an appropriate value // MacroPropertyType target = new MacroPropertyType(Id); // Assert.Inconclusive("TODO: Implement code to verify target"); //} ///// /////A test for Alias ///// //[TestMethod()] //public void AliasTest() //{ // MacroPropertyType target = new MacroPropertyType(); // TODO: Initialize to an appropriate value // string actual; // actual = target.Alias; // Assert.Inconclusive("Verify the correctness of this test method."); //} ///// /////A test for Assembly ///// //[TestMethod()] //public void AssemblyTest() //{ // MacroPropertyType target = new MacroPropertyType(); // TODO: Initialize to an appropriate value // string actual; // actual = target.Assembly; // Assert.Inconclusive("Verify the correctness of this test method."); //} ///// /////A test for BaseType ///// //[TestMethod()] //public void BaseTypeTest() //{ // MacroPropertyType target = new MacroPropertyType(); // TODO: Initialize to an appropriate value // string actual; // actual = target.BaseType; // Assert.Inconclusive("Verify the correctness of this test method."); //} ///// /////A test for GetAll ///// //[TestMethod()] //public void GetAllTest() //{ // List actual; // actual = MacroPropertyType.GetAll; // Assert.Inconclusive("Verify the correctness of this test method."); //} ///// /////A test for Id ///// //[TestMethod()] //public void IdTest() //{ // MacroPropertyType target = new MacroPropertyType(); // TODO: Initialize to an appropriate value // int actual; // actual = target.Id; // Assert.Inconclusive("Verify the correctness of this test method."); //} ///// /////A test for Type ///// //[TestMethod()] //public void TypeTest() //{ // MacroPropertyType target = new MacroPropertyType(); // TODO: Initialize to an appropriate value // string actual; // actual = target.Type; // Assert.Inconclusive("Verify the correctness of this test method."); //} #endregion #region Additional test attributes // //You can use the following additional attributes as you write your tests: // //Use ClassInitialize to run code before running the first test in the class //[ClassInitialize()] //public static void MyClassInitialize(TestContext testContext) //{ //} // //Use ClassCleanup to run code after all tests in a class have run //[ClassCleanup()] //public static void MyClassCleanup() //{ //} // //Use TestInitialize to run code before running each test //[TestInitialize()] //public void MyTestInitialize() //{ //} // //Use TestCleanup to run code after each test has run //[TestCleanup()] //public void MyTestCleanup() //{ //} // #endregion } }