⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 popedomtest.cs

📁 高校 学籍管理、成绩、收费、网上教学
💻 CS
字号:
// 以下代码由 Microsoft Visual Studio 2005 生成。
// 测试所有者应该检查每个测试的有效性。
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Text;
using System.Collections.Generic;
using QSEDUNET.BL.BaseInfo;
using QSEDUNET.MODEL.BaseInfo;
namespace QsSystemTEST
{
    /// <summary>
    ///这是 QSEDUNET.BL.BaseInfo.Popedom 的测试类,旨在
    ///包含所有 QSEDUNET.BL.BaseInfo.Popedom 单元测试
    ///</summary>
    [TestClass()]
    public class PopedomTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文,上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }
        #region 附加测试属性
        // 
        //编写测试时,可使用以下附加属性:
        //
        //使用 ClassInitialize 在运行类中的第一个测试前先运行代码
        //
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //使用 ClassCleanup 在运行完类中的所有测试后再运行代码
        //
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //使用 TestInitialize 在运行每个测试前先运行代码
        //
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //使用 TestCleanup 在运行完每个测试后运行代码
        //
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///CreatePopedom (UserPopedomModel) 的测试
        ///</summary>
        [TestMethod()]
        public void CreatePopedomTest()
        {
            Popedom target = new Popedom();

            UserPopedomModel userPopedomModel = null; // TODO: 初始化为适当的值
            userPopedomModel = new UserPopedomModel();
            userPopedomModel.UserPopedom_Name = "学生管理";
            userPopedomModel.UserPopedom_Msg = "学校教师权限";

            bool actual;

            actual = target.CreatePopedom(userPopedomModel);

            Assert.IsTrue(actual);
        }

        /// <summary>
        ///DelPopedom (UserPopedomModel) 的测试
        ///</summary>
        [TestMethod()]
        public void DelPopedomTest()
        {
            Popedom target = new Popedom();

            UserPopedomModel userPopedomModel = null; // TODO: 初始化为适当的值

            bool expected = false;
            bool actual;

            actual = target.DelPopedom(userPopedomModel);

            Assert.AreEqual(expected, actual, "QSEDUNET.BL.BaseInfo.Popedom.DelPopedom 未返回所需的值。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///UpPopedom (UserPopedomModel) 的测试
        ///</summary>
        [TestMethod()]
        public void UpPopedomTest()
        {
            Popedom target = new Popedom();

            UserPopedomModel userPopedomModel = null; // TODO: 初始化为适当的值

            bool expected = false;
            bool actual;

            actual = target.UpPopedom(userPopedomModel);

            Assert.AreEqual(expected, actual, "QSEDUNET.BL.BaseInfo.Popedom.UpPopedom 未返回所需的值。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

    }


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -