Esempio n. 1
0
        public void PendingStatusStringToEnumTest()
        {
            var statusString = Constants.Pending;

            var actual   = EnumStringMap.ToEnum(statusString);
            var expected = Status.Pending;

            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void OtherStatusToStringTest()
        {
            var status = Status.Other;

            var actual   = EnumStringMap.ToString(status);
            var expected = Constants.Other;

            Assert.Equal(expected, actual);
        }
Esempio n. 3
0
        public void OtherStatusStringToEnumTest()
        {
            var statusString = "Anything else";

            var actual   = EnumStringMap.ToEnum(statusString);
            var expected = Status.Other;

            Assert.Equal(expected, actual);
        }
Esempio n. 4
0
        public void ApprovedStatusToStringTest()
        {
            var status = Status.Approved;

            var actual   = EnumStringMap.ToString(status);
            var expected = Constants.Approved;

            Assert.Equal(expected, actual);
        }
Esempio n. 5
0
        public void ApprovedStatusStringToEnumTest()
        {
            var statusString = Constants.Approved;

            var actual   = EnumStringMap.ToEnum(statusString);
            var expected = Status.Approved;

            Assert.Equal(expected, actual);
        }