예제 #1
0
        public void TestGetStringValueCenter()
        {
            AlignType dirn = AlignType.Center;

            AlignConverter.GetStringValue(dirn).Should().Be("center");
        }
예제 #2
0
        public void TestGetStringValueNullableNull()
        {
            AlignType?dirn = null;

            AlignConverter.GetStringValue(dirn).Should().Be("");
        }
예제 #3
0
        public void TestGetStringValueRight()
        {
            AlignType dirn = AlignType.Right;

            AlignConverter.GetStringValue(dirn).Should().Be("right");
        }
예제 #4
0
        public void TestGetStringValueInvalidEnumValue()
        {
            AlignType dirn = (AlignType)99;

            AlignConverter.GetStringValue(dirn).Should().Be("");
        }
예제 #5
0
        public void TestGetStringValueJustify()
        {
            AlignType dirn = AlignType.Justify;

            AlignConverter.GetStringValue(dirn).Should().Be("justify");
        }