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

📄 guesttest.cs

📁 酒店管理软件,c#版本可以选择不同的模式
💻 CS
📖 第 1 页 / 共 2 页
字号:
// 以下代码由 Microsoft Visual Studio 2005 生成。
// 测试所有者应该检查每个测试的有效性。
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Text;
using System.Collections.Generic;
namespace Hotel.SystemSetting.Test
{
    /// <summary>
    ///这是 Hotel.SystemSetting.Bll.Guest 的测试类,旨在
    ///包含所有 Hotel.SystemSetting.Bll.Guest 单元测试
    ///</summary>
    [TestClass()]
    public class GuestTest
    {


        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>
        ///Address 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void AddressTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.Address = val;


            Assert.AreEqual(val, accessor.Address, "Hotel.SystemSetting.Bll.Guest.Address 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///ArchivesId 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void ArchivesIdTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.ArchivesId = val;


            Assert.AreEqual(val, accessor.ArchivesId, "Hotel.SystemSetting.Bll.Guest.ArchivesId 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///AvaiTime 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void AvaiTimeTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            DateTime val = new DateTime(); // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.AvaiTime = val;


            Assert.AreEqual(val, accessor.AvaiTime, "Hotel.SystemSetting.Bll.Guest.AvaiTime 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///BornTime 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void BornTimeTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            DateTime val = new DateTime(); // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.BornTime = val;


            Assert.AreEqual(val, accessor.BornTime, "Hotel.SystemSetting.Bll.Guest.BornTime 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///CardId 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CardIdTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.CardId = val;


            Assert.AreEqual(val, accessor.CardId, "Hotel.SystemSetting.Bll.Guest.CardId 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///CardinalRoom 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CardinalRoomTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.CardinalRoom = val;


            Assert.AreEqual(val, accessor.CardinalRoom, "Hotel.SystemSetting.Bll.Guest.CardinalRoom 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Certificate 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CertificateTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.Certificate = val;


            Assert.AreEqual(val, accessor.Certificate, "Hotel.SystemSetting.Bll.Guest.Certificate 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///CertificateId 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CertificateIdTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.CertificateId = val;


            Assert.AreEqual(val, accessor.CertificateId, "Hotel.SystemSetting.Bll.Guest.CertificateId 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///CertificatePic 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CertificatePicTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.CertificatePic = val;


            Assert.AreEqual(val, accessor.CertificatePic, "Hotel.SystemSetting.Bll.Guest.CertificatePic 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///CitizenShip 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CitizenShipTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.CitizenShip = val;


            Assert.AreEqual(val, accessor.CitizenShip, "Hotel.SystemSetting.Bll.Guest.CitizenShip 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///City 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CityTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.City = val;


            Assert.AreEqual(val, accessor.City, "Hotel.SystemSetting.Bll.Guest.City 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Company 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void CompanyTest()
        {
            object target = Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor.CreatePrivate();

            string val = null; // TODO: 给属性赋适当的值。

            Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor accessor = new Hotel.SystemSetting.Test.Hotel_SystemSetting_Bll_GuestAccessor(target);

            accessor.Company = val;


            Assert.AreEqual(val, accessor.Company, "Hotel.SystemSetting.Bll.Guest.Company 未正确设置。");
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Fancy 的测试
        ///</summary>
        [DeploymentItem("Hotel.SystemSetting.Bll.dll")]
        public void FancyTest()
        {

⌨️ 快捷键说明

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