Example #1
0
        public void TestConvertBack(string value, int expectedResult)
        {
            var converter = new IntToMonsterQualityConverter();

            var result = converter.ConvertBack(value, null, null, null);

            result.Should().BeOfType <int>();
            result.Should().Be(expectedResult);
        }
Example #2
0
        public void TestConvertBackWithNullValue()
        {
            var converter = new IntToMonsterQualityConverter();

            var result = converter.ConvertBack(null, null, null, null);

            result.Should().BeOfType <int>();
            result.Should().Be(-1);
        }