public void UnspecifiedTextWithLessThanOne_ReturnsMinusCountItems(int count, string expected)
        {
            var converter = new IntToPluralStringConverter();

            var result = (string)converter.Convert(count, typeof(string), null, CultureInfo.InvariantCulture);

            result.Should().Be(expected);
        }
        public void UnspecifiedTextWithOne_ReturnsOneItem()
        {
            var count     = 1;
            var expected  = "(1 item)";
            var converter = new IntToPluralStringConverter();

            var result = (string)converter.Convert(count, typeof(string), null, CultureInfo.InvariantCulture);

            result.Should().Be(expected);
        }
        public void TestWithGreaterThanOne_ReturnsCountTests(int count, string expected)
        {
            var converter = new IntToPluralStringConverter()
            {
                Text = "test"
            };

            var result = (string)converter.Convert(count, typeof(string), null, CultureInfo.InvariantCulture);

            result.Should().Be(expected);
        }
        public void TestWithOne_ReturnsOneTest()
        {
            var count     = 1;
            var expected  = "(1 test)";
            var converter = new IntToPluralStringConverter()
            {
                Text = "test"
            };

            var result = (string)converter.Convert(count, typeof(string), null, CultureInfo.InvariantCulture);

            result.Should().Be(expected);
        }
        public void TestWithZero_ReturnsZeroTests()
        {
            var count     = 0;
            var expected  = "(0 tests)";
            var converter = new IntToPluralStringConverter
            {
                Text = "test"
            };

            var result = (string)converter.Convert(count, typeof(string), null, CultureInfo.InvariantCulture);

            result.Should().Be(expected);
        }