public void TestEquals()
        {
            var value      = new QuickInfo.BusinessLogic.QuickInfo("foobar", DateTime.MinValue);
            var sameValue  = new QuickInfo.BusinessLogic.QuickInfo("foobar", DateTime.MinValue);
            var otherValue = new QuickInfo.BusinessLogic.QuickInfo("FOOBAR", DateTime.MinValue);

            value.Should().Be(sameValue);
            value.Should().NotBe(otherValue);
        }
        public void TestOperatorEquals()
        {
            var value      = new QuickInfo.BusinessLogic.QuickInfo("foobar", DateTime.MinValue);
            var sameValue  = new QuickInfo.BusinessLogic.QuickInfo("foobar", DateTime.MinValue);
            var otherValue = new QuickInfo.BusinessLogic.QuickInfo("FOOBAR", DateTime.MinValue);

            (value == sameValue).Should().BeTrue();
            (value != sameValue).Should().BeFalse();

            (value == otherValue).Should().BeFalse();
            (value != otherValue).Should().BeTrue();
        }
        public void TestRegexp2()
        {
            var config = new QuickInfoConfiguration
            {
                FilterValue = "v(\\d+).(\\d+).\\d.\\d",
                MatchType   = FilterMatchType.RegexpFilter
            };
            var formatter = new QuickInfoFormatter(config);
            var result    = new QuickInfo.BusinessLogic.QuickInfo("Product version: v3.12.4.8");

            formatter.Format(result, "Minor {1}, Major {2}")
            .Should().Be("Minor 3, Major 12");
        }
        public void TestRegexp1()
        {
            var config = new QuickInfoConfiguration
            {
                FilterValue = "v\\d.\\d.\\d.\\d",
                MatchType   = FilterMatchType.RegexpFilter
            };
            var formatter = new QuickInfoFormatter(config);
            var result    = new QuickInfo.BusinessLogic.QuickInfo("Product version: v1.2.4.8");

            formatter.Format(result, "{0}")
            .Should().Be("v1.2.4.8");
        }