コード例 #1
0
        public void IsAcadamicAffairTest()
        {
            UserInformation info            = new UserInformation("AAA", "0912345678", "AAAA", new DateTime(2000, 7, 15), "男");
            Account         acadamicAffairs = new AcadamicAffairs("2313", "1111", 1, info);

            Assert.IsTrue(acadamicAffairs.IsAcadamicAffair());
            Assert.IsFalse(acadamicAffairs.IsStudent());
        }
コード例 #2
0
        public void TestConstructor()
        {
            UserInformation info            = new UserInformation("AAA", "0912345678", "AAAA", new DateTime(2000, 7, 15), "男");
            AcadamicAffairs acadamicAffairs = new AcadamicAffairs("2313", "1111", 1, info);

            Assert.AreEqual("2313", acadamicAffairs.Id);
            Assert.AreEqual("1111", acadamicAffairs.Password);
            Assert.AreEqual(1, acadamicAffairs.Authority);
            Assert.AreEqual(info, acadamicAffairs.UserInformation);
        }