Example #1
0
        public void OtherStatusStringToEnumTest()
        {
            var statusString = "Anything else";

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

            Assert.Equal(expected, actual);
        }
Example #2
0
        public void PendingStatusStringToEnumTest()
        {
            var statusString = Constants.Pending;

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

            Assert.Equal(expected, actual);
        }
Example #3
0
        public void ApprovedStatusStringToEnumTest()
        {
            var statusString = Constants.Approved;

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

            Assert.Equal(expected, actual);
        }