コード例 #1
0
        public void ConsoleMessagesGetHashCode_Test()
        {
            var messagesList = MessagesEnumeration.GetAll <ConsoleMessages>();
            var id           = 1;

            foreach (var i in messagesList)
            {
                Assert.AreEqual(id.GetHashCode(), i.GetHashCode());
                id++;
            }
        }
コード例 #2
0
        public void ConsoleMessagesGetAll_Test()
        {
            var a  = MessagesEnumeration.GetAll <ConsoleMessages>();
            var id = 1;

            foreach (var i in a)
            {
                Assert.AreEqual(id, i.Id);
                id++;
            }
        }